Credential.all()

Get the set of all Credential documents.

Signature

Credential.all(): Set<Credential>

Description

This method returns the set of all credentials in the database. If Credential.all() is the last expression in a query, the first page of the Set is returned.

Parameters

None

Return value

Type Description

Set<Credential>

All the credentials in the current database.

Examples

Credentials.all()
{
  data: [
    {
      id: "401670531152086093",
      coll: Credential,
      ts: Time("2099-06-25T13:21:59.270Z"),
      document: Manager("401670531119579213")
    },
    {
      id: "401670531158376525",
      coll: Credential,
      ts: Time("2099-06-25T13:21:59.270Z"),
      document: Customer("401670531121676365")
    },
    {
      id: "401670531164667981",
      coll: Credential,
      ts: Time("2099-06-25T13:21:59.270Z"),
      document: Customer("401670531122724941")
    },
    {
      id: "401670531170959437",
      coll: Credential,
      ts: Time("2099-06-25T13:21:59.270Z"),
      document: Customer("401670531123773517")
    }
  ]
}

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!