type
CollectionIndex
An ordered compound index over supported field paths.
Properties
| Property | Type | Description |
|---|---|---|
Fields | []query.Path | The Fields value. |
Unique | bool | The Unique value. |
How it works
Official stores use NULLS DISTINCT semantics for unique compound indexes.
Full signature
type CollectionIndex struct {
Fields []query.Path `json:"fields"`
Unique bool `json:"unique,omitempty"`
}