Testing Subqueries/Mutations of a top level query (codegen for subqueries/mutations) #528
-
Hey all, was wondering if it is possible to test this query currently - I am not seeing any way to do so using current codegen without using plain strings (which lead to a lot of time wasted debugging small syntax errors. My issue is i cannot seem to propagate downwards any of the variables i enter in, so we cannot generate a real mutation userSignup {
topLevel {
signUp(
input: {first: "x", last: "y"}}
) {
success
id
}
}
} type Mutation {
topLevel: MyTopLevelMutation!
}
type MyTopLevelMutation {
# Signups a new user
signUp(input: UserInput!): UserPayload!
#...more mutations
}
type UserInput {
first: String!
last: String!
}
type UserPayload {
success: Boolean!
id: ID!
}
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This was recently fixed in codegen. Please try again with the latest release(https://github.com/Netflix/dgs-codegen/releases)! |
Beta Was this translation helpful? Give feedback.
-
can you post on how you implemented the data fetchers for these? |
Beta Was this translation helpful? Give feedback.
This was recently fixed in codegen. Please try again with the latest release(https://github.com/Netflix/dgs-codegen/releases)!