v0.3.0
Added
-
Association Support: Automatic handling of Ecto schema associations (
has_one,has_many,belongs_to) in GraphQL types- New
extract_associations/1function inEctoGraphql.SchemaHelperto extract association metadata from Ecto schemas - Association fields are automatically generated with Dataloader resolvers in
gql_fieldsmacro - New
:include_associationsoption forgql_fields(defaults totrue)
- New
-
Dataloader Integration: Built-in support for Dataloader in generated schemas
gql.gen.inittask now addsdataloaderdependency tomix.exs- Generated root schema includes
context/1function with Dataloader setup - Generated root schema includes
plugins/0function withAbsinthe.Middleware.Dataloader
-
Optional Dataloader Dependency: Added
{:dataloader, "~> 2.0", optional: true}as an optional dependency