Skip to content

PHPLIB-1695 Add $createObjectId operator to the agg builder #1738

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

Merged
merged 1 commit into from
Aug 1, 2025

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Jul 29, 2025

Fix PHPLIB-1695

The documentation is not available yet, so I invented an example. To be updated once the documentation is published.

@GromNaN GromNaN changed the title PHPLIB-1695 Add $createObjectId operator to the agg builder PHPLIB-1695 Add $createObjectId operator to the agg builder Jul 29, 2025
-
$project:
objectId:
$createObjectId: {}
Copy link
Member Author

Choose a reason for hiding this comment

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

From the server source:

$createObjectId only accepts the empty object as argument

@GromNaN GromNaN marked this pull request as ready for review August 1, 2025 09:39
@GromNaN GromNaN requested a review from a team as a code owner August 1, 2025 09:39
@GromNaN GromNaN requested a review from alcaeus August 1, 2025 09:39
Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

I love how little work it is to add a new operator 🎉

@GromNaN GromNaN merged commit ca939ba into mongodb:v2.x Aug 1, 2025
31 checks passed
@GromNaN GromNaN deleted the PHPLIB-1695 branch August 1, 2025 10:43
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