Replies: 1 comment
-
|
If it's purely for testing purposes, you could add an empty |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I am using Spring Boot and Netflix's DGS library for GraphQL on the backend. Our app has multiple modules (multi-gradle project) and each module is responsible for one thing. Therefore, I wanted to split GQL schema into multiple files based on the business logic of that module (let's say we have packages like
cars, people, animals, and parent moduleapp, which contains the main SpringBootApp class), so I want only mutations and queries for one particular package on the path and not others. (I don't want to see Mutations forcarsin theanimalpackage)Problem is that I cannot have multiple definitions of the Mutation type in the project, so I tried to put
extend type Mutation, but this fails when I run my tests because they don't know the parent since the only schema for cars is copied and not the parent.Another option would be perhaps to create a new type for mutations like
UseMutation,CarMutation, but not sure if that is the correct approach.I also tried to create some Gradle task, that would copy the schema and remove the
extendkeyword from the file, which would work, but it's not the best solution.Do you have any other ideas, how to work and deal with this schema separation? Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions