turning on graphql for first time in my app (multi tenant)
# router.ex import AshAuthentication.Plug.Helpers pipeline :graphql do plug :load_from_bearer plug AshGraphql.Plug end
# router.ex import AshAuthentication.Plug.Helpers pipeline :graphql do plug :load_from_bearer plug AshGraphql.Plug end
and my first query blows up with:
Queries against the App.Elevate.Group resource require a tenant to be specified
Queries against the App.Elevate.Group resource require a tenant to be specified
which makes sense. So reading ash graphl docs:
AshGraphql.PlugAutomatically set up the GraphQL actor and tenant.Adding this plug to your pipeline will automatically set the actor and tenant if they were previously put there by Ash.PlugHelpers.set_actor/2 or Ash.PlugHelpers.set_tenant/2.
AshGraphql.PlugAutomatically set up the GraphQL actor and tenant.Adding this plug to your pipeline will automatically set the actor and tenant if they were previously put there by Ash.PlugHelpers.set_actor/2 or Ash.PlugHelpers.set_tenant/2.
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.