The index to use. Specify either 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.
If provided as a string, hint must be index name for an index on the collection.
If provided as an object, hint must be an index description for an index defined on the collection.
Since Server Version
7.1
The index to use. Specify either 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.
If provided as a string,
hint
must be index name for an index on the collection. If provided as an object,hint
must be an index description for an index defined on the collection.See https://www.mongodb.com/docs/manual/reference/command/distinct/#command-fields.