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.

Token.all()

Get the Set of all Token objects.

Signature

Token.all() => Set<Token>

Description

This method returns the Set of all tokens in the database. If Token.all() is the last expression in a query, this method returns first page of the Set.

Parameters

None

Return value

Type Description

Set<Token>

All tokens in the current database.

Examples

Token.all()
{
  data: [
    {
      id: "412664786461917696",
      coll: Token,
      ts: Time("2099-07-25T14:10:32.165Z"),
      document: Customer("111")
    },
    ...
  ]
}

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!