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

Although $replaceWith is a valid operator for the aggregation pipeline, it is currently not implemented in Mongomock #870

Open
Mlkhall opened this issue Jan 10, 2024 · 1 comment

Comments

@Mlkhall
Copy link

Mlkhall commented Jan 10, 2024

Doesn't work for this query:

[{'$match': {'order_number': {'$in': ('R107675064',
                                      'R182251261',
                                      'R260757148',
                                      'R330051387',
                                      'R480463364')}}},
 {'$sort': {'order_number': 1, 'created_at_afs': -1}},
 {'$group': {'_id': '$order_number',
             'most_recent_record': {'$first': '$$ROOT'}}},
 {'$replaceWith': '$most_recent_record'},
 {'$project': {'_id': 0, 'order_number': 1, 'shipments': 1}}]
@timok19
Copy link

timok19 commented May 12, 2024

Is there any updates? Is it still alive? I am getting almost the same error, but for pipeline lookup operator

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

No branches or pull requests

2 participants