separate query and mutation method resolver
KrifaYounes opened this issue · 1 comments
KrifaYounes commented
it's possible to separate method contained in query and mutation in differents file by domain
AuthorQueryResolver.java
BookQueryResolver.java
AuthorMutationResolver.java
BookMutationResolver.java
eh3rrera commented
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.