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
Currently, linked documents can be used in lookups with their ID field. It's only convenience, but it would also be useful to make lookups with model objects, like await Car.find(Car.wheel == wheel1).to_list(). Also, some additional type checking would be useful, as
await Car.find(Car.wheel.id == wheel1.id).to_list() works, but await Car.find(Car.wheel.id == str(wheel1.id)).to_list() doesn't and this is not so extraterrestrial that the IDs are turned to string objects while being serialized, for example.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently, linked documents can be used in lookups with their ID field. It's only convenience, but it would also be useful to make lookups with model objects, like
await Car.find(Car.wheel == wheel1).to_list()
. Also, some additional type checking would be useful, asawait Car.find(Car.wheel.id == wheel1.id).to_list()
works, butawait Car.find(Car.wheel.id == str(wheel1.id)).to_list()
doesn't and this is not so extraterrestrial that the IDs are turned to string objects while being serialized, for example.Beta Was this translation helpful? Give feedback.
All reactions