Skip to content

feat(autocomplete): add MongoDB 8.3 arrayIndexAs and $$IDX support MONGOSH-3244 - #2763

Merged
ivandevp merged 5 commits into
mainfrom
MONGOSH-3244
Jul 9, 2026
Merged

feat(autocomplete): add MongoDB 8.3 arrayIndexAs and $$IDX support MONGOSH-3244#2763
ivandevp merged 5 commits into
mainfrom
MONGOSH-3244

Conversation

@ivandevp

@ivandevp ivandevp commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bumps @mongodb-js/mongodb-constants to ^0.33.0, which adds the $$IDX system variable gated to MongoDB 8.3+
  • Bumps @mongodb-js/mongodb-ts-autocomplete to ^0.7.3, which adds arrayIndexAs autocomplete for $filter, $map, and $reduce operators introduced in MongoDB 8.3

These changes implement autocomplete support for the new array index exposure feature from MONGOSH-3244. Unfortunately, $$IDX being used inside a string quotes is not an autocomplete feature supported.

Upstream PRs

  • mongodb-js/devtools-shared#815 — schema.d.ts updated with arrayIndexAs, as, valueAs for $filter/$map/$reduce (merged)
  • mongodb-js/devtools-shared#817$$IDX system variable added to mongodb-constants (merged)

Test plan

  • npm test --workspace=packages/autocomplete passes

  • In mongosh connected to MongoDB 8.3+, typing $filter: { arrayIn suggests arrayIndexAs

    Screenshot 2026-07-08 at 08 39 57

…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
ivandevp requested a review from a team as a code owner July 8, 2026 11:38
@ivandevp
ivandevp requested a review from Anemy July 8, 2026 11:38
@ivandevp
ivandevp marked this pull request as draft July 8, 2026 13:40
@ivandevp
ivandevp marked this pull request as ready for review July 8, 2026 13:47
@ivandevp
ivandevp merged commit 49a945f into main Jul 9, 2026
141 of 154 checks passed
@ivandevp
ivandevp deleted the MONGOSH-3244 branch July 9, 2026 23:58
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