type
Collection
The resolved contract for a collection.
Properties
| Property | Type | Description |
|---|---|---|
ID | StableID | The ID value. |
Slug | CollectionSlug | The Slug value. |
Labels | CollectionLabels | The Labels value. |
Admin | CollectionAdmin | The Admin value. |
Capabilities | Capabilities | The Capabilities value. |
Auth | *AuthSettings | The Auth value. |
Upload | *UploadSettings | The Upload value. |
Versions | *VersionSettings | The Versions value. |
DocumentLock | *DocumentLockSettings | The DocumentLock value. |
Fields | []Field | The Fields value. |
Indexes | []CollectionIndex | The Indexes value. |
Endpoints | []Endpoint | The Endpoints value. |
Full signature
type Collection struct {
ID StableID `json:"id"`
Slug CollectionSlug `json:"slug"`
Labels CollectionLabels `json:"labels"`
Admin CollectionAdmin `json:"admin"`
Capabilities Capabilities `json:"capabilities"`
Auth *AuthSettings `json:"authSettings,omitempty"`
Upload *UploadSettings `json:"uploadSettings,omitempty"`
Versions *VersionSettings `json:"versionSettings,omitempty"`
DocumentLock *DocumentLockSettings `json:"documentLockSettings,omitempty"`
Fields []Field `json:"fields"`
Indexes []CollectionIndex `json:"indexes,omitempty"`
Endpoints []Endpoint `json:"endpoints,omitempty"`
}