Credential.byId()

Get a Credential document by ID.

Signature

Credential.byId(id: id) => Credential | Null

Description

Gets the associated Credential document if it exists and is accessible.

Parameters

Parameter Type Required Description

id

String

Yes

ID of the Credential document to get.

Return value

Type Description

Credential

Credential document or null if the document doesn’t exist.

Examples

Credential.byId("401328088781160521")
{
  id: "401328088768577609",
  coll: Credential,
  ts: Time("2099-06-21T18:39:00.735Z"),
  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!