/plushcap/analysis/hasura/turn-your-node-js-rest-api-to-graphql

Turn your Node.js REST API to GraphQL using Hasura Actions

What's this blog post about?

This post discusses using Hasura Actions to convert a Node.js REST API to GraphQL. It explains that setting up a GraphQL server from scratch can be complex, but Hasura reduces this complexity by providing instant GraphQL CRUD for databases and allowing users to extend the Graph through different ways such as custom business logic or existing REST APIs. The post then delves into Actions, which are a way to extend Hasura's schema with custom business logic using custom queries and mutations. It provides examples of how to implement both new and existing REST APIs, handling permissions, and connecting to databases within the Node.js handler. Additionally, it mentions that the Hasura CLI can be used to generate action boilerplate code from the command line.

Company
Hasura

Date published
July 14, 2020

Author(s)
Praveen Durairaju

Word count
1573

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.