database.replace()
Learn: Databases and multi-tenancy |
---|
Replace a child database's metadata and settings.
Description
Replaces all fields in a child
database's metadata and settings, represented as an
Database
document, with fields
from a provided data object. Fields not present in the data object, excluding
the coll
and ts
metadata fields, are removed.
Fauna stores child databases as documents in the parent database’s
Database
system collection.
Database
documents have the DatabaseDef type.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
data |
Fields for the
For supported document fields, see
The object can’t include the following metadata fields:
|