Schema Organization
Learn how we organize the schema and import the types module in GraphQL.
We'll cover the following...
Organising a schema
Absinthe schemas are compiled. This means that their types are collected, references are resolved, and the overall structure of the schema is verified against a set of rules. All this happens during Elixir’s module compilation process. Absinthe does this to ensure that GraphQL documents can be processed at runtime using a schema module that’s already been checked for common errors and optimized for better performance. That doesn’t mean our Absinthe schema needs to be written in a single module. In fact, when a schema grows ...