ash_graphql/documentation/topics/relay.md
2023-10-15 21:12:13 -04:00

446 B

Relay

Enabling relay for a resource sets it up to follow the relay specification.

The two changes that are made currently are:

  • the type for the resource will implement the Node interface
  • pagination over that resource will behave as a Connection.

Using with Absinthe.Relay

Use the following option when calling use AshGraphql

use AshGraphql, define_relay_types?: false