Open sekoyo opened 4 years ago
Can you please share an app that reproduces the issue?
Seems like they should/could be added to https://github.com/micronaut-projects/micronaut-graphql/blob/master/graphql/src/main/java/io/micronaut/configuration/graphql/GraphQLRequestBody.java but it's a bit lame to just make it a valid object, and further ignore extensions.
Describe the bug
Apollo sends an
extensions: {}
field with subscription queries like so:Unless
extensions
is removed or changed toundefined
then the java graphql server refuses to parse the valid message. In Micronaut v1 it threw a JSON parse exeption, in Micronaut v2 it doesn't throw but a response is not sent unless extensions is undefined or not present.To Reproduce
Send a query with
extensions: {}
for example:Environment Information