/plushcap/analysis/hasura/create-a-remote-schema-to-wrap-a-rest-api-hasura

Create a Remote Schema to wrap a REST API with Hasura

What's this blog post about?

A remote schema is an external GraphQL service that can be integrated with Hasura GraphQL Engine for a unified GraphQL API. This approach allows developers to incrementally adopt GraphQL in existing infrastructure by wrapping pre-existing REST APIs within a GraphQL layer. In this process, the developer creates a new GraphQL schema and fills in types and fields based on the REST API endpoints. Then, resolvers are added to map the incoming GraphQL requests to the corresponding REST API endpoints. Finally, the service is deployed and its URL is added as a Remote Schema in Hasura for automatic schema-stitching. This method offers several advantages such as incremental adoption of GraphQL, type safety, readability, and a unified API layer.

Company
Hasura

Date published
March 20, 2019

Author(s)
Tirumarai Selvan

Word count
713

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.