I am playing around with GraphQL and Spring Boot, but I am stuck on this issue for a while now.
First, here is my build.gradle:
...
compile 'com.graphql-java-kickstart:graphql-spring-boot-starter:5.10.0'
compile group: 'com.graphql-java', name: 'graphql-java-tools', version: '5.2.4'
runtime 'com.graphql-java-kickstart:graphiql-spring-boot-starter:5.10.0'
...
I have an entity, lets say - Dog, a Repository, Service, Mutator and a Query for it. In /resources I have dogs.graphqls
with the schema in there.
But for some reason, I cannot get the app to start. The error message reads: No graphql schema files found on classpath with location pattern '**/*.graphqls'
. When i remove the dependency to com.graphql-java-kickstart:graphql-spring-boot-starter
it starts, but does not find the schema.
Any ideas?