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: "371233004820889634",
      coll: Token,
      ts: Time("2023-07-25T14:10:32.165Z"),
      document: People.byId("370723013175279650")
    },
    {
      id: "371233060625055778",
      coll: Token,
      ts: Time("2023-07-25T14:11:25.360Z"),
      document: People.byId("370723013175279650")
    },
    {
      id: "371460870397493282",
      coll: Token,
      ts: Time("2023-07-28T02:32:21.700Z"),
      document: People.byId("301")
    }
  ]
}

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!