Check out example codes for "pymongo find one". It will help you in understanding the concepts better.

Code Example 1

>>> import pprint
>>> pprint.pprint(posts.find_one())
{u'_id': ObjectId('...'),
 u'author': u'Mike',
 u'date': datetime.datetime(...),
 u'tags': [u'mongodb', u'python', u'pymongo'],
 u'text': u'My first blog post!'}

Learn ReactJs, React Native from akashmittal.com