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: "371153420791316514",
      coll: Credential,
      ts: Time("2023-07-24T17:05:34.890Z"),
      document: People.byId("370723013175279650")
    },
    {
      id: "371240301830864930",
      coll: Credential,
      ts: Time("2023-07-25T16:06:31.110Z"),
      document: People.byId("371240301825622050")
    },
    {
      id: "371264255814533154",
      coll: Credential,
      ts: Time("2023-07-26T21:57:08.286Z"),
      document: People.byId("371264255805095970")
    },
    {
      id: "371461110451142690",
      coll: Credential,
      ts: Time("2023-07-28T02:36:10.630Z"),
      document: People.byId("371461024462667810")
    }
  ]
}

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!