Skip to content

fix(mongodb-constants): update stage operator snippets COMPASS-6700#783

Open
ivandevp wants to merge 1 commit into
mainfrom
COMPASS-6700
Open

fix(mongodb-constants): update stage operator snippets COMPASS-6700#783
ivandevp wants to merge 1 commit into
mainfrom
COMPASS-6700

Conversation

@ivandevp

@ivandevp ivandevp commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Description

Updates aggregation pipeline stage operator snippets in @mongodb-js/mongodb-constants to match the reviewed templates from the COMPASS-6700 doc, removing optional fields that users almost always delete and fixing a snippet bug:

  • $out (ON_PREM/ATLAS): Simplified snippet from a verbose object with a commented-out timeseries block to the plain string form '${1:string}'
  • $out (ADL): Replaced deep nested S3-only object with the leaner { s3, atlas } structure from the reviewed doc
  • $search: Removed optional matchCriteria field from the default snippet
  • $score: Fixed duplicate tab stop ${2} used for both scoreDetails and normalization, which caused both fields to edit simultaneously in snippet mode

Open Questions

N/A

Checklist

- Simplify $out (ON_PREM/ATLAS) snippet to string form per reviewed doc
- Update $out (ADL) snippet to show s3/atlas options instead of verbose s3 object
- Remove optional matchCriteria field from $search snippet
- Fix duplicate tab stop ${2} in $score snippet
@ivandevp ivandevp requested a review from nbbeeken June 17, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants