/plushcap/analysis/hasura/join-data-graphql-api-database-table-remote-schema-database-joins

Join data from a GraphQL API with Database Table using Remote Schema to Database Joins

What's this blog post about?

The article discusses the use of Hasura's GraphQL Joins feature to join data from different sources. It specifically focuses on Remote Schema to Database (RS-to-DB) Joins, which allow for joining data coming from a GraphQL API with existing data in a database. This is achieved by creating a relationship between the remote schema and the Hasura app. The article provides an example of how this can be applied in an e-commerce scenario where a store service containing items and orders is connected to a Hasura application that tracks users and their orders. By creating an array relationship from the remote schema to the database, user information can be retrieved alongside the orders without writing additional code or modifying external GraphQL APIs.

Company
Hasura

Date published
June 27, 2022

Author(s)
Catalin Pit

Word count
572

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.