Skip to content

Conversation

@Namyts
Copy link

@Namyts Namyts commented Dec 12, 2025

Allow for whitespace between query and opening curly bracket. It previously interpreted the curly as the operation name.

// Working ✅
query{
  __schema {
    types {
      name
    }
  }
}
// Not working ❌ <-- I want this to work
query {
  __schema {
    types {
      name
    }
  }
}

because

{"query":"query {\n  __schema {\n    types {\n      name\n    }\n  }\n}","operationName":"{"}  

Added to all 3 regexes for consistency, but I am only concerned about query & mutation

Allow for whitespace between query and opening curly bracket. It previously interpreted the curly as the operation name
@Namyts Namyts changed the title Fix regex patterns for gql parsing Fix regex patterns for gql parsing to allow for whitespace Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant