gloo
gloo copied to clipboard
GraphQL - GraphqlAPI with only Mutation don't work
Gloo Edge Product
Enterprise
Gloo Edge Version
latest
Kubernetes Version
latest
Describe the bug
if you create a graphql API with only a mutation (no query) it doesn't work (in envoy) but adding the query fixes it
Expected Behavior
mutation only gqlapi should be allowed
Steps to reproduce the bug
schemaDefinition: |
input NicknameDetailsInput{
nickname: String
id: String
businessUnit: String
}
type NicknameMutationResponse {
messageInfo: MessageInfo
errors: [Error]
}
type Error {
code: String
message: String
}
type MessageInfo{
messageType: String
code: String
messageName: String
messageText: String
messageState: String
}
type Mutation {
createNickname(body: NicknameDetailsInput): NicknameMutationResponse @resolve(name: "createNickname")
}
type Query {
getNicknames: [Nickname] @resolve(name: "listNickname")
}
type Nickname {
nickname: String
id: String
businessUnit: String
}
Additional Environment Detail
No response
Additional Context
No response