Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types(aggregate): allow object syntax for $mergeObjects #13470

Merged
merged 1 commit into from Jun 7, 2023

Conversation

vkarpov15
Copy link
Collaborator

Fix #13060

Summary

More info here: https://www.mongodb.com/docs/manual/reference/operator/aggregation/mergeObjects/#syntax . Technically you can only use $mergeObjects: Record<string, string> if using $mergeObjects in a $bucket, $bucketAuto, or $group stage accumulator, but implementing that is complex and likely not worth the effort.

Examples

@vkarpov15 vkarpov15 added this to the 7.2.3 milestone Jun 7, 2023
@vkarpov15 vkarpov15 merged commit 5a2ca9f into master Jun 7, 2023
3 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-13060 branch June 7, 2023 01:23
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.

Wrong typing on $mergeObjects with an object
3 participants