by Jaxkr · 5y ago · 0 comments
I know I’m missing something because this tool IS used.
So you start coding a new REST API just for the public API use case, having to test, maintain and keep parity with the GraphQL version over time? This package allows you to get a RESTful API for free (and customize it per your needs), based on your existing GraphQL.
Another use case is exactly for what you described, when a company wished to replace their REST API with GraphQL:
An old REST API can be migrated to a new GraphQL API gradually, by first building the GraphQL API and using GraphQL2REST to generate a REST API on top of it, seamlessly. That new REST API will have the same interface as the old one, and the new implementation can then be tested, endpoints migrated in stages, until a full migration to the underlying GraphQL API takes place.