gloo icon indicating copy to clipboard operation
gloo copied to clipboard

GraphQL - GraphqlAPI with only Mutation don't work

Open asayah opened this issue 8 months ago • 0 comments

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

asayah avatar Jun 24 '24 23:06 asayah