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

driver: Find's query argument should be more consistent #1015

Open
flimzy opened this issue Jul 17, 2024 · 0 comments
Open

driver: Find's query argument should be more consistent #1015

flimzy opened this issue Jul 17, 2024 · 0 comments
Milestone

Comments

@flimzy
Copy link
Member

flimzy commented Jul 17, 2024

At present, it allows:

If query is a string, []byte, or [encoding/json.RawMessage], it should be treated as a raw JSON payload. Any other type should be marshaled to JSON.

This should be made more consistent. Either by passing a pre-parsed selector of some type (perhaps a *mongo.Selector?) or the raw JSON only.

Relates to #1014, and probably depends on it.

@flimzy flimzy added this to the v5 milestone Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant