A Fauna module, such as a Collection, Database, Function, Role, etc. Every module is usable directly in your FQL code.

The example below shows FQL code that gets all documents for a hypothetical 'Users' collection by creating a Module for user and then calling .all().

You can also create modules for databases, functions, roles and other entities in your database.

 const response = await client.query(fql`
${new Module("Users")}.all()
`);
const allUserDocuments = response.data;

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

Constructors

Properties

Constructors

Properties

name: string