AggregateOptions.maxTimeMS

Specifies a time limit in milliseconds for processing operations on a cursor. If you do not specify a value for maxTimeMS, operations will not time out.

struct AggregateOptions
Nullable!long maxTimeMS;

Meta