hasura / hasura/graphql-engine

V3: Client header forwarding to connectors

Open
#10,255 0 comments 1 reaction 1 assignee Claimed by @TheInnerLight View on GitHub
c/v3-engine c/v3-ndc-nodejs-lambda v3
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Currently V3 connectors are built using [NDC Spec](https://hasura.io/docs/3.0/connectors/introduction). NDC is an abstraction to encapsulate a data source and as of now intended to be agnostic of the API fronted by the engine.

However, there are legitimate reasons where a Hasura user needs a request / response header at the GraphQL API to be propagated to a data connector. For example:
- A connector that serves the "login" business logic needs to be able to take in some request headers received by the engine and the engine should be able to set response headers (eg: "set-cookie") based on the connector's response.
- A remote schema connector, where we want the remote GraphQL API to be forwarded exactly, needs to be able to somehow receive HTTP headers received by the engine and return the HTTP headers that the engine needs to send in its response.

[To add the RFC]

(Internal ticket: https://hasurahq.atlassian.net/browse/V3ENGINE-149)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.