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

Using GraphQL to join data across Google Places API and Postgres to build location based apps

Blog post from Hasura

Post Details
Company
Date Published
Author
Praveen Durairaju
Word Count
511
Language
English
Hacker News Points
-
Summary

This article discusses using Hasura Remote Joins to join geography data from PostGIS extension in a Postgres database with Google Places API in GraphQL. It explains how to enable the PostGIS extension on Postgres and insert sample user location data. The author then demonstrates how to fetch nearby restaurants' information using Google Places API as a REST API, adding it as a Remote Schema in Hasura Console. Finally, the article provides an example of a GraphQL query that fetches this data in a single API call by joining the Postgres and Google Places API data.