fix(mongodb-constants): update stage operator snippets COMPASS-6700#783
Open
ivandevp wants to merge 1 commit into
Open
fix(mongodb-constants): update stage operator snippets COMPASS-6700#783ivandevp wants to merge 1 commit into
ivandevp wants to merge 1 commit into
Conversation
- 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
nbbeeken
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updates aggregation pipeline stage operator snippets in
@mongodb-js/mongodb-constantsto 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-outtimeseriesblock 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 optionalmatchCriteriafield from the default snippet$score: Fixed duplicate tab stop${2}used for bothscoreDetailsandnormalization, which caused both fields to edit simultaneously in snippet modeOpen Questions
N/A
Checklist