silidos / apollo-gateway-multiple-schemas-poc

Apollo Gateway POC that displays two different schemas based on the HTTP headers passed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apollo-gateway-multiple-schemas-poc

Apollo Gateway POC that displays two different schemas, toggling between the two if a "schema" HTTP header is passed.

Currently, resolvers are not implemented but you can test the logic through fetching the schema/an introspection request.

To start the repo - npm install && npm run dev

The server will be started on port 8080.

If you wish to change the supergraphs, you may do so by editing the schemas and supergraph.yaml files. Then, you can run the rover supergraph compose command locally and edit the supergraph schemas with the new output.

About

Apollo Gateway POC that displays two different schemas based on the HTTP headers passed


Languages

Language:TypeScript 100.0%