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
Currently, GraphQlAutoConfiguration hard codes the file extensions which will be searched when discovering schema definitions. This caused issues when trying to integrate spring-graphql into a project as we were using .graphql files to store GraphQL queries and .graphqls to store schema definitions. This caused the application context to blow up at runtime.
We worked around this problem by moving the queries and schemas into different directories, but having more control over this would be useful considering the directory to scan is already configurable.
The text was updated successfully, but these errors were encountered:
@rstoyanchev with the upcoming client support, do you think we should change the defaults to consider only "*.graphqls", "*.gqls" for schema files and "*.graphql", "*.gql" for queries?
Currently, GraphQlAutoConfiguration hard codes the file extensions which will be searched when discovering schema definitions. This caused issues when trying to integrate spring-graphql into a project as we were using
.graphql
files to store GraphQL queries and.graphqls
to store schema definitions. This caused the application context to blow up at runtime.We worked around this problem by moving the queries and schemas into different directories, but having more control over this would be useful considering the directory to scan is already configurable.
The text was updated successfully, but these errors were encountered: