Skip to content

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

Merged
ivandevp merged 1 commit into
mainfrom
COMPASS-6700
Jun 18, 2026
Merged

fix(mongodb-constants): update stage operator snippets COMPASS-6700#783
ivandevp merged 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
@ivandevp ivandevp merged commit 1c1716b into main Jun 18, 2026
8 checks passed
@ivandevp ivandevp deleted the COMPASS-6700 branch June 18, 2026 05:36
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