If the query does not use an index to perform the read operation, the cursor returns empty documents.
restaurants collection contains documents with the following schema:
The collection has two indexes in addition to the default
The following code uses the
cursor.returnKey() method to return only the indexed fields used for executing the query:
This returns the following: