-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
ReadPreference not working for aggregate query #6582
Comments
The read pref is already missing in the request, I assume it's actually a JS SDK issue. parse-server/src/Routers/AggregateRouter.js Line 156 in 9842c6e
|
Added failing test cases in PR #6585 |
Added JS SDK PR parse-community/Parse-SDK-JS#1143 |
Status:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
Setting the mongodb read preference is ignored for aggregate queries.
Steps to reproduce
Expected Results
Should read from secondary.
Actual Outcome
Reads from primary.
Environment Setup
Server
Database
Logs/Trace
mongodb nodejs driver log:
"executing command [{"ns":"development.$cmd","cmd":{"aggregate":"MyClass","pipeline":[],"cursor":{}},"options":{}}] against mySecondary.locahost:27010"
The text was updated successfully, but these errors were encountered: