eh3rrera/graphql-java-spring-boot-example

separate query and mutation method resolver

KrifaYounes opened this issue · 1 comments

it's possible to separate method contained in query and mutation in differents file by domain
AuthorQueryResolver.java
BookQueryResolver.java
AuthorMutationResolver.java
BookMutationResolver.java

Yes, it's possible, but for this project, and just for teaching purposes, I put all the queries in a Query class, all the mutations in a Mutation class, and the method to get authors from a book in another class.