You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the "Getting Started With Graphql" tutorial page, the "Add AshGraphql to your schema" section(link) includes a lot of instructions that aren't referenced in the code block below.
Excerpt:
Add AshGraphql to your schema
If you don’t have an absinthe schema, you can create one just for ash.
Define a context/1 function, and call AshGraphql.add_context/2 with the current context and your apis. Additionally, add the Absinthe.Middleware.Dataloader to your plugins, as shown below. If you’re starting fresh, just copy the schema below and adjust the module name and api name.
Then, the code block beneath neither contains anything about context, Dataloader, or plugins:
defmoduleHelpdesk.SchemadouseAbsinthe.Schema@apis[Helpdesk.Support]useAshGraphql,apis: @apis# The query and mutation blocks is where you can add custom absinthe codequerydoendmutationdoendend
Additional context
If those are automatically created by calling use AshGraphql, apis: @apis then that should probably be spelled out.
The text was updated successfully, but these errors were encountered:
On the "Getting Started With Graphql" tutorial page, the "Add AshGraphql to your schema" section(link) includes a lot of instructions that aren't referenced in the code block below.
Excerpt:
Then, the code block beneath neither contains anything about context, Dataloader, or plugins:
Additional context
If those are automatically created by calling
use AshGraphql, apis: @apis
then that should probably be spelled out.The text was updated successfully, but these errors were encountered: