Replies: 2 comments 3 replies
-
|
The framework searches for schema files in |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Ok. Got that. Since I can define the path in application.properties where to look for my own schemas, is it possible to adapt the path to achieve the described situation? Instead of putting all schemas in a subfolder of resources? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
is it possible to place schema files in the same package as Java Classes?
In my opinion it is beneficial to place the schema file directly next to a model / entity class.
We have lots of entities which are mapped to the database and most of them als have a .graphql file in the schema folder.
We create a file for every package and separate our schemas there.
I tried to set a path with the following option in the application.properties file:
dgs.graphql.schema-locations="**/*.graphql*"The default is the following
dgs.graphql.schema-locations="classpath*:schema/**/*.graphql*"It did not work as expected.
If it is not possible, why isn't it? Is it discouraged by any reason?
Any help is appreciated :)
Beta Was this translation helpful? Give feedback.
All reactions