type

CollectionIndex

One ordered compound index; Unique enforces tuple uniqueness.

Example

go
CollectionIndex{Fields: []string{"tenant", "slug"}, Unique: true}

Properties

PropertyTypeDescription
Fields[]stringDot-separated authored paths in index order; paths may traverse non-repeated groups.
UniqueboolEnforces 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.

Full signature