cursor property
Specify a document that contains options that control the creation of the cursor object.
Changed in version 3.6: MongoDB 3.6 removes the use of aggregate command without the cursor option unless the command includes the explain option. Unless you include the explain option, you must specify the cursor option.
To indicate a cursor with the default batch size, specify cursor: {}
.
To indicate a cursor with a non-default batch size, use
cursor: { batchSize: <num> }
.
Implementation
Map<String, Object> cursor;