dgs-framework icon indicating copy to clipboard operation
dgs-framework copied to clipboard

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

Open WenSteven opened this issue 2 years ago • 1 comments

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

WenSteven avatar Aug 23 '23 10:08 WenSteven

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.

kailyak avatar Aug 24 '23 18:08 kailyak

Closing this issue because the transport layer for DGS is now handled by Spring GraphQL.

paulbakker avatar Oct 31 '24 23:10 paulbakker