/plushcap/analysis/hasura/creating-a-graphql-api-for-notion-with-hasura-actions

Creating a GraphQL API for Notion with Hasura Actions

What's this blog post about?

In this tutorial, we learn how to create a GraphQL API for Notion using Hasura Actions. First, we set up things on Notion's side by creating a workspace and an integration with the relevant name and workspace. We then share a page or database in Notion that can be accessed using the API. Next, we deploy Hasura to get a GraphQL API and create an Action for adding a new item to the database. The Notion API is used to add items to the database, and the Action code is written and deployed on Glitch. Finally, we test the GraphQL API in Hasura Console API Explorer and define permissions for the Action. This process can be repeated for any of Notion's REST APIs by defining custom types appropriately and writing the webhook handler.

Company
Hasura

Date published
May 21, 2021

Author(s)
Praveen Durairaju

Word count
1001

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.