title: How to get dictionary object in Mongoengine Python?
body: <p>On querying pymongo i get a dictionary object that can be sent directly as a response to the api request. Where as mongoengine returns a Document object on querying database. So I have to parse every object before it can be sent as the response in the api.</p>
  
  <p>this is how I have to query in mongoengine.</p>
  
  <p><code>users = User.objects(location = 'US')
  </code></p>
  
  <p>This will return me a <code>BaseQueryList</code> object which contains User model type object. Instead I need that it should return me a list of dictionary type objects of Users.</p>