API Expert
Oct 9, 2022

--

The mapping for the request/response is handled through @querymapping annotation at your controller/method. Thus everytime stitching needs to call an endpoint, it has to issue a separate redirect. PERIOD! This is PER DOCUMENTATION! (https://docs.spring.io/spring-graphql/docs/current-SNAPSHOT/api/org/springframework/graphql/data/method/annotation/QueryMapping.html)

You cannot call a schema directly because you would basically be doing a DB call without any security whatsoever. This is why the GraphQL spec has it routed through a controller where it either dynamically generates the endpoints or you create them.

--

--

API Expert
API Expert

Written by API Expert

Owen Rubel is the 'API Expert'. He is an Original Amazon team member, Creator of API Chaining(R), Leader in API Automation

No responses yet