hasura/graphql-engine

add continueParsing mode in "action"

Albert-Gao opened this issue · 2 comments

Discuss with @coco98 in Discord before

I think the current design is pretty flexible and can be used like a pre-request hook which solves at least all my problems like validation.

However, I am thinking of a continueParsing mode to the current design.

So instead of returning whatever returned from the serverless or remote call, what about sometimes I want to reconstruct the query, like, after doing some process, I want to return another set of data instead:

  • something like I send another graphql query to hasura along with a flag,
  • then hasura sees the flag,
  • it will execute the query and return the result to client
  • so it can save one roundtrip.

@coco98 said I should embed this info as well which I have no idea:
"vis a vis the query root in mutation issue"

Related to #1583

This issue will now be reviewed and tracked as part of the Hasura V3 roadmap.