Skip to content

feat(mongodb-constants): add $toArray and $toObject conversion operators COMPASS-9747#801

Merged
ivandevp merged 1 commit into
mainfrom
COMPASS-9747
Jun 25, 2026
Merged

feat(mongodb-constants): add $toArray and $toObject conversion operators COMPASS-9747#801
ivandevp merged 1 commit into
mainfrom
COMPASS-9747

Conversation

@ivandevp

@ivandevp ivandevp commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Description

Adds two new type conversion shorthand operators introduced in MongoDB 8.3 (SERVER-105087):

  • $toArray — converts a JSON string to a BSON array (shorthand for $convert with to: "array")
  • $toObject — converts a JSON string to a BSON document/object (shorthand for $convert with to: "object")

Open Questions

None.

Checklist

@ivandevp ivandevp self-assigned this Jun 24, 2026
@ivandevp ivandevp merged commit 3b4abae into main Jun 25, 2026
8 checks passed
@ivandevp ivandevp deleted the COMPASS-9747 branch June 25, 2026 07:28
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