Key.all()

Get the set of all Key objects.

Signature

Key.all(): Set<Key>

Description

The Key.all() method returns the set of all Tokens in the database.

If Key.all() is the last expression in a query, the first page of the set is returned.

Parameters

None

Return value

Type Description

Set<Key>

All keys in the current database.

Examples

Key.all()
{
  data: [
    {
      id: "370714759876575266",
      coll: Key,
      ts: Time("2023-07-19T20:53:15.250Z"),
      data: {
        name: "coffee-admin"
      },
      role: "admin"
    }
  ]
}

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!