We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Goal is to support more complex queries like so:
db.users.find({ $or: [ { address: { country: "CA" } }, { name: "jonah" } ] })
which would look something like this:
let filter: Filter = User::filter() .any(|f| { f.entry(f.address().country().eq("CA".to_string())) .entry(f.name().eq("jonah".to_string())) }).build(); // OR let filter: Filter = User::filter() .any(|f| vec![ f.address().country().eq("CA".to_string()), f.name().eq("jonah".to_string()), ]) .build();
The text was updated successfully, but these errors were encountered:
@bizarre Implemented this in latest commit on jonah/macro branch; see here @ musty/examples/filter.rs
jonah/macro
Let me know what you think of the implementation or if any changes should be made
Sorry, something went wrong.
jonahseguin
No branches or pull requests
Goal is to support more complex queries like so:
which would look something like this:
The text was updated successfully, but these errors were encountered: