Type Alias DistinctOptions

DistinctOptions: CommandOperationOptions & {
    hint?: Document | string;
}

Type declaration

  • Optionalhint?: Document | string

    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 /v8.3/reference/command/distinct/#command-fields.