A reference to a Document with a name. The Document may or may not exist. References to specific AccessProviders, Collections, Databases, Functions, etc. are modeled with a NamedDocumentReference.

The example below retrieves a NamedDocumentReference for a hypothetical "Users" collection.

 const response = await client.query(fql`
Users.definition
`);
const namedDocumentReference = response.data;

const collectionName = namedDocumentReference.name;
collectionName === "Users"; // returns true

https://docs.fauna.com/fauna/current/reference/fql_reference/types#special

Hierarchy (view full)

Constructors

Properties

Constructors

Properties

coll: Module
name: string