database.update()
Learn: Databases and multi-tenancy |
---|
Update a child database's metadata and settings.
Description
Updates a child database's metadata
and settings, represented as a
Database
document, with fields
from a provided data object.
Fauna stores child databases as documents in the parent database’s
Database
system collection.
Database
documents have the DatabaseDef type.
During the update, fields from the data object are copied to the document, creating new fields or updating existing fields. The operation is similar to a merge.
Nested fields
Fields with nested objects in the data object are merged with the identically named nested object in the document.
Database backups
You can’t use this method to enable or disable backups on a child database. You can only enable or disable backups in the Fauna Dashboard. See Database backup and restore .
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
data |
true |
Document fields for the
For supported document fields, see
The object can’t include the following metadata fields: * |
Return value
Type | Description |
---|---|
The updated |