Check out v4 of the Fauna CLI
v4 of the Fauna CLI is now in beta. The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start. |
credential.update()
Update a credential.
Description
Updates a
Credential
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.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
data |
Yes |
Document fields for the
For supported document fields, see
The object can’t include the following metadata fields: * |
Examples
Credential.byId("412654807560487424")!.update({
password: "newest-sekret"
})
{
id: "412654807560487424",
coll: Credential,
ts: Time("2099-08-14T23:50:22.420Z"),
document: Customer("111")
}
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!