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.
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 |