vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Variable AggregateOptions.hint

The index to use for the aggregation. The index is on the initial collection / view against which the aggregation is run.

struct AggregateOptions
  // ...
  std.typecons.Nullable!( hint ;
  // ...

The hint does not apply to $lookup and $graphLookup stages.

Specify the index either by the index name as a string or the index key pattern. If specified, then the query system will only consider plans using the hinted index.


Jan Jurzitza


© 2022 Jan Jurzitza


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.