View Source Absinthe.Relay.Schema (absinthe_relay v1.8.0)
Used to extend a schema with Relay-specific macros and types.
Accepts a flavor (use Absinthe.Relay.Schema, :modern) or a keyword list
of options:
:flavor-:modernor:classic.:global_id_translator- a module implementingAbsinthe.Relay.Node.IDTranslator. Defaults toAbsinthe.Relay.Node.IDTranslator.Base64.:node_id_type- the type of theidfield and argument generated by thenodemacros. Defaults to:id. Type modules can pass the same option touse Absinthe.Relay.Schema.Notation.
use Absinthe.Relay.Schema,
flavor: :modern,
global_id_translator: MyApp.Absinthe.IDTranslator,
node_id_type: :uuidSee Absinthe.Relay.