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.

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: "412655134325080576",
      coll: Key,
      ts: Time("2099-07-19T20:53:15.250Z"),
      data: {
        desc: "Admin key for prod app database"
      },
      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!