token.update()
Description
Updates a token's metadata or
identity document represented
as an Token
document, with fields
from a provided data object.
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.
A token is a type of authentication secret used to provide identity-based access to a Fauna database.
Nested fields
Fields with nested objects in the data object are merged with the identically named nested object in the document.
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 |
Document fields for the For supported document fields, see
The object can’t include the following metadata fields: * |
Return value
Type | Description |
---|---|
The updated |