key.replace()
Description
Replaces all fields in a key, represented as an
Key
document, with fields from a
provided data object. Fields not present in the data object, excluding the id
,
coll
, and ts
metadata fields, are removed.
A key is a type of authentication secret used for anonymous access to a Fauna database. Unlike tokens, keys are not associated with an identity.
Metadata fields
You can’t use this method to insert or edit the following metadata fields:
-
id
-
coll
-
ts
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
data |
true |
Fields for the For supported document fields, see
The object can’t include the following metadata fields: * |