Skip to main content

Alter Collection

Updates collection schema

Synopsis

Updates collection schema.

tigris alter collection {db} {schema} [flags]

Examples


# Pass the schema as a string
tigris alter collection testdb '{
"title": "users",
"description": "Collection of documents with details of users",
"properties": {
"id": {
"description": "A unique identifier for the user",
"type": "integer"
},
"name": {
"description": "Name of the user",
"type": "string",
"maxLength": 100
}
},
"primary_key": [
"id"
]
}'

Options

  -h, --help   help for collection