Hi Hugo --
`find()` and `find_one()` are direct passthroughs to PyMongo, i.e. we
don't make any changes to the query. You want to use `search()` or
`first()`, which takes keyword parameters:
city = City.first(name="new-york")
users = User.search(city=city)
Keep in mind, this only works if the User model has a `city` attribute
that is a ReferenceField.
Let me know if you have any questions!
---
Josh Marshall
(254) 498-0366
> --
> You received this message because you are subscribed to the Google Groups
> "Mogo Python Object Wrapper" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
mogo-python...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.