GraphQL with Postgres views and materialized views
This article discusses the use of Postgres views and materialized views with GraphQL. It explains that Postgres views are virtual tables that can be linked to regular tables using relationships, allowing for single nested queries to fetch related data. The Hasura GraphQL engine is an open-source tool that enables setting up a GraphQL server over Postgres in minutes, providing the ability to add views as relationships to tables or other views. An example use case of building a backend for a blog engine demonstrates how these concepts can be applied in practice.
Company
Hasura
Date published
Aug. 14, 2018
Author(s)
Sandip
Word count
1145
Hacker News points
None found.
Language
English