Collection

Properties

NAME TYPE DESCRIPTION
$id string Collection ID.
$createdAt integer Collection creation date in Unix timestamp.
$updatedAt integer Collection update date in Unix timestamp.
$read array Collection read permissions.
$write array Collection write permissions.
databaseId string Database ID.
name string Collection name.
enabled boolean Collection enabled.
permission string Collection permission model. Possible values: `document` or `collection`
attributes array Collection attributes. Can be one of:

AttributeBoolean model, AttributeInteger model, AttributeFloat model, AttributeEmail model, AttributeEnum model, AttributeURL model, AttributeIP model, AttributeString model

indexes array Collection indexes. Can be one of:

Index model

Example