improvement: Set up GraphQL schema file in the web module namespace (#205)

This keeps consistency with AshJsonApi, which generates its router in the web module namespace as well
This commit is contained in:
Rebecca Le 2024-08-03 21:49:55 +08:00 committed by GitHub
parent 4773f76636
commit c3544dfe29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,7 @@ defmodule Mix.Tasks.AshGraphql.Install do
|> Spark.Igniter.prepend_to_section_order(:"Ash.Resource", [:graphql])
|> Spark.Igniter.prepend_to_section_order(:"Ash.Domain", [:graphql])
schema_name = Igniter.Code.Module.module_name("GraphqlSchema")
schema_name = Igniter.Libs.Phoenix.web_module_name("GraphqlSchema")
{igniter, candidate_ash_graphql_schemas} =
AshGraphql.Igniter.ash_graphql_schemas(igniter)