Home > other >  Setting up REST-API on top of GraphQL-API (using apollo gateway?)
Setting up REST-API on top of GraphQL-API (using apollo gateway?)

Time:04-06

I am working on a GRANDstack (GraphQL-React-Apollo-Neo4jDatabase) project and got told that it now needs an additional REST-API without making huge changes to the existing backend and GraphQL-API. And of course we have to be quick about it.

We found this (Apollo Gateway): visualization

CodePudding user response:

If anyone ever stumbles upon this, we decided to do the following:

Since we have to be quick about it, we will set up another docker container, that contains a small server, which accepts data via a REST-API. Depending on the received data, it calls specific GraphQL-Queries/Mutations on our backend. Easy. No additional 3rd-party software. Simple just wins.

Have a good one!

  • Related