The core class used for report queries is pymongo.collection.Collection.find().
Here is the generic syntax:
find(filter=None, projection=None, skip=0, limit=0, \
no_cursor_timeout=False, cursor_type=CursorType.NON_TAILABLE, \
sort=None, ... /* other options not shown */)
The find() arguments match their mongo shell equivalents. The more widely used parameters are summarized here:
Parameter | Default | Notes |
filter | None | A dictionary consisting of key/value pairs, where the key represents the field to search and the value represents the search criteria. If set to None, all documents in the collection are selected. |
projection | None | A dictionary consisting of key/value pairs, where the key represents the field to show or suppress from the output. To show a field, set the value to 1. To suppress the field, set the value to 0. If set to None, all fields in the selected documents are returned. |
skip | 0 | During results iteration, this... |