type
CollectionIndex
One ordered compound database index.
Example
CollectionIndex{Fields: []string{"tenant", "slug"}, Unique: true}Properties
| Property | Type | Description |
|---|---|---|
Fields | []string | Dot-separated authored paths in index order; paths may traverse non-repeated groups. |
Unique | bool | Enforces tuple uniqueness while still allowing multiple rows containing null. |
Full signature
type CollectionIndex struct {
Fields []string
Unique bool
}