type
CollectionIndex
type CollectionIndex struct {
Fields []query.Path `json:"fields"`
Unique bool `json:"unique,omitempty"`
}An ordered compound index over supported field paths.
Fields[]query.Path- The Fields value.
Uniquebool- The Unique value.
Official stores use NULLS DISTINCT semantics for unique compound indexes.