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.
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 |
Fields for the
For supported document fields, see
The object can’t include the following metadata fields:
|