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

fix(cursor): make aggregation cursor support transform option to match query cursor #14348

Merged
merged 1 commit into from Feb 14, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #14331

Summary

Aggregation cursor doesn't support transform option currently, which is inconsistent with query cursor API. This PR makes it so that calling Model.aggregate(pipeline).cursor({ transform }) adds a transform to the aggregation cursor's _transforms.

Examples

@vkarpov15 vkarpov15 added this to the 8.1.3 milestone Feb 14, 2024
@vkarpov15 vkarpov15 merged commit b9e1f75 into master Feb 14, 2024
34 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-14331 branch February 14, 2024 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants