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!