Directives

Directives are extensions to standard GraphQL syntax that can enhance GraphQL queries. Every directive name is prefixed with the "at" sign (@). This section describes the directives provided by the Fauna GraphQL API.

@collection

Specifies the name of the underlying collection for this type.

@embedded

Specifies that the current type be embedded in the referencing type.

@index

Specifies the name of the underlying index for this field.

@relation

Declares bi-directional relationships between types.

@resolver

Specifies a user-defined function for resolving this field.

@unique

Specifies the name of an index to enforce a uniqueness constraint.