Hi Richard,
Sorry for the late reply - I've been away for a few weeks.
You should be able to call 'explain' on a QuerySet to see the query
that has been generated:
>>> User.objects(name__startswith='a').explain()
{u'allPlans': [{u'cursor': u'BtreeCursor _types_1', u'indexBounds':
[[{u'_types': u'User'}, {u'_types': u'User'}]]}, {u'cursor':
u'BasicCursor', u'indexBounds': []}], u'millis': 0, u'n': 1,
u'cursor': u'BtreeCursor _types_1', u'oldPlan': {u'cursor':
u'BtreeCursor _types_1', u'indexBounds': [[{u'_types': u'User'},
{u'_types': u'User'}]]}, u'indexBounds': [[{u'_types': u'User'},
{u'_types': u'User'}]], u'nscannedObjects': 2, u'nscanned': 2}
Hope this helps,
Harry