You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately there's currently nothing like this in Avocado. However, this is certainly something I have thought about, except that I'm not sure how I would go about implementing it.
I'm guessing that a new derive macro could pre-generate helper types for most of the MongoDB DSL (i.e. query and update operators) based on top-level field names and types, but it might become tricky to refer to subfields.
I'd also really like to solve this problem because it would bring a whole new set of static guarantees to Avocado.
Is it possible to write statically typed filters? (e.g. similar to what
diesel
has or something else), and if not, is there any plans for them?Something like:
The text was updated successfully, but these errors were encountered: