feat(autocomplete): add MongoDB 8.3 arrayIndexAs and $$IDX support MONGOSH-3244 - #2763
Merged
Conversation
…e for MongoDB 8.3 MONGOSH-3244 Bumps @mongodb-js/mongodb-constants to 0.33.0 (adds $$IDX system variable) and @mongodb-js/mongodb-ts-autocomplete to 0.7.3 (adds arrayIndexAs autocomplete for $filter, $map, $reduce operators introduced in MongoDB 8.3).
ivandevp
marked this pull request as draft
July 8, 2026 13:40
ivandevp
marked this pull request as ready for review
July 8, 2026 13:47
Anemy
approved these changes
Jul 9, 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.
Summary
@mongodb-js/mongodb-constantsto^0.33.0, which adds the$$IDXsystem variable gated to MongoDB 8.3+@mongodb-js/mongodb-ts-autocompleteto^0.7.3, which addsarrayIndexAsautocomplete for$filter,$map, and$reduceoperators introduced in MongoDB 8.3These changes implement autocomplete support for the new array index exposure feature from MONGOSH-3244. Unfortunately,
$$IDXbeing used inside a string quotes is not an autocomplete feature supported.Upstream PRs
mongodb-js/devtools-shared#815— schema.d.ts updated witharrayIndexAs,as,valueAsfor$filter/$map/$reduce(merged)mongodb-js/devtools-shared#817—$$IDXsystem variable added tomongodb-constants(merged)Test plan
npm test --workspace=packages/autocompletepassesIn mongosh connected to MongoDB 8.3+, typing
$filter: { arrayInsuggestsarrayIndexAs