Netflix / dgs-framework

GraphQL for Java with Spring Boot made easy.
https://netflix.github.io/dgs
Apache License 2.0
3.05k stars 295 forks source link

bug: When use apollo-link-batch-http cause exception #1608

Open WenSteven opened 1 year ago

WenSteven commented 1 year ago

Please read our contributor guide before creating an issue.

Steps to reproduce

About apollo-link-batch: https://www.apollographql.com/docs/react/api/link/apollo-link-batch-http/

When I use apollo-link-batch request graphql,response is Invalid query - No content to map to input.

so my graphql request would be :

image

that is json array,but in DgsRestController line 115 : inputQuery = mapper.readValue(body) CAUSE exception

Note: A test case would be highly appreciated, but we understand that's not always possible

kailyak commented 1 year ago

Thanks for opening the issue. We currently do not support batch requests since this is not widely used internally. We will add it to our backlog to prioritize for future based on use cases.