Skip to content

DRIVERS-3273: Add $toArray expression operator#48

Merged
paulinevos merged 1 commit into
mongodb:mainfrom
paulinevos:to-array
Jun 8, 2026
Merged

DRIVERS-3273: Add $toArray expression operator#48
paulinevos merged 1 commit into
mongodb:mainfrom
paulinevos:to-array

Conversation

@paulinevos

Copy link
Copy Markdown
Contributor

Forgot to create a PR for the spec apparently

Copilot AI review requested due to automatic review settings June 8, 2026 12:25
@paulinevos paulinevos requested a review from GromNaN June 8, 2026 12:26
@paulinevos paulinevos enabled auto-merge June 8, 2026 12:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the $toArray aggregation expression operator specification to the expressions definitions set, aligning the repo’s operator catalog with MongoDB 8.3+ functionality.

Changes:

  • Introduces a new operator definition for $toArray (metadata, return type, encoding, argument typing).
  • Adds two example pipelines for string→array and binData→array conversions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread definitions/expression/toArray.yaml
Comment thread definitions/expression/toArray.yaml
@paulinevos paulinevos merged commit e15b26d into mongodb:main Jun 8, 2026
3 checks passed
@GromNaN GromNaN changed the title DRIVERS-3273: Add $toArray expression operator DRIVERS-3273: Add $toArray expression operator Jun 8, 2026
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.

3 participants