heynemann / motorengine

Motorengine is a port of MongoEngine for Tornado.
http://motorengine.readthedocs.org
204 stars 67 forks source link

how to query _id #126

Closed SmileChen007 closed 7 years ago

SmileChen007 commented 7 years ago

I try many ways to query datas by _id ,but it returns null.

so i want to konw ,if there is a way to query data by _id .

thanks.

SmileChen007 commented 7 years ago

so i find the way to query by _id : msg.objects.get(_id)