Home / Companies / Contentful / Blog / Post Details
Content Deep Dive

Combining Contentful GraphQL and Postgres via Hasura

Blog post from Contentful

Post Details
Company
Date Published
Author
Shy Ruparel
Word Count
878
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

GraphQL enables schema stitching by creating a single schema from multiple underlying APIs, allowing developers to merge different databases such as Contentful and Postgres into a unified GraphQL API. This is achieved through remote schema relationships in Hasura, which establishes connections between the two databases. By setting up a remote schema relationship, developers can create a single query that retrieves user data from Hasura and content from Contentful, eliminating the need for separate queries to each database. The process involves creating a new table on Hasura, establishing a connection with Contentful through an API key and authorization header, mapping fields between the two databases, and defining a mutation to set favorite recipes. With this setup, developers can build a unified backend API using GraphQL, which can be further expanded upon for a full application.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.