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

Pipe (aggregate) options #93

Closed
ganigeorgiev opened this issue Feb 1, 2018 · 4 comments
Closed

Pipe (aggregate) options #93

ganigeorgiev opened this issue Feb 1, 2018 · 4 comments
Labels

Comments

@ganigeorgiev
Copy link

Is there a way to define aggreate options (and more precisely collation) by using .Pipe()? Currently only AllowDisk seems to be available.

@domodwyer
Copy link

Hi @ganigeorgiev

I believe the Pipe() method supports all aggregations I know of - at least the documentation seems to suggest as much?

If you have any problems post back here and we'll look into it - perhaps include an example of the MongoDB query you're trying to run.

Dom

@ganigeorgiev
Copy link
Author

ganigeorgiev commented Feb 7, 2018

@domodwyer .Pipe() defines only the pipelines of the aggregation. What I mean was options like "explain", "maxTimeMS", "bypassDocumentValidation", "collation", etc (check the second argument of mongo aggregate).

@domodwyer
Copy link

Ah sorry, I see what you mean now.

We don't use aggregations so I'm not too familiar with it but it looks like you're right - there's no obvious way to configure the timeout, etc. If you wind up adding this functionality, please do open a PR!

Dom

@peterdeka
Copy link

Yep this should also address some options for the ChangeStreams (MaxAwaitTimeMS and Collation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants