Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL - GraphqlAPI with only Mutation don't work #9681

Open
asayah opened this issue Jun 24, 2024 · 0 comments
Open

GraphQL - GraphqlAPI with only Mutation don't work #9681

asayah opened this issue Jun 24, 2024 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@asayah
Copy link
Contributor

asayah commented Jun 24, 2024

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 asayah added the Type: Bug Something isn't working label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant