Replies: 1 comment 3 replies
-
Thanks for the nice word! :) Currently, the dunder notation is reserved for chaining related models and not into JSON data but that should be doable, especially that it seems that sqlalchemy core has required functionality to build similar queries: https://docs.sqlalchemy.org/en/14/core/type_basics.html#sqlalchemy.types.JSON |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
First of all I'm really impressed by the work made on ormar. I hope to use it more in the future. Something I think will be useful for many developers is the support of JsonField querying. We have many cases where it is convenient to store data as json, so querying this json data is also something we need.
Taking the example from the django documentation if we have a model like the following:
and we instantiate some models like this:
we should be able to query the
data
field like this:Let me know what you think :)
Beta Was this translation helpful? Give feedback.
All reactions