type
CollectionIndex
One ordered compound index; Unique enforces tuple uniqueness.
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. |
How it works
Compound paths traverse non-repeated groups. Unique indexes permit multiple rows containing null.