Written by 눈오는바다 | Published a year ago
To create a compound index use an operation that resembles the following prototype:
The value of the field in the index specification describes the kind of index for that field. For example, a value of 1 specifies an index that orders items in ascending order. A value of -1 specifies an index that orders items in descending order. For additional index types, see index types.