Function.all()

Get the Set of all accessible user-defined Function documents.

Signature

Function.all(): Set<Function>

Description

The Function.all() method returns the Set of all UDF documents.

If Function.all() is the last value in a query, the first page of the Set is returned.

Parameters

None

Return value

Type Description

Set<Function>

Set of all UDF documents in the current database. See Function document definition.

Examples

Function.all()
{
  data: [
    {
      name: "Increment",
      coll: Function,
      ts: Time("2022-10-25T21:01:19.310Z"),
      body: "(x) => x + 1"
    },
    {
      name: "Double",
      coll: Function,
      ts: Time("2022-10-25T21:01:19.310Z"),
      body: "(x) => x + x"
    }
  ]
}

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!