/plushcap/analysis/hasura/turn-your-go-rest-api-to-graphql-using-hasura-actions

Turn your Go REST API to GraphQL using Hasura Actions

What's this blog post about?

This post discusses how to convert a Go REST API to GraphQL using Hasura Actions. It explains that writing a GraphQL server from scratch involves setting up the schema, type definitions, and resolvers, which can become complex as an application grows. Hasura reduces this complexity by providing instant GraphQL CRUD for databases like Postgres, covering most data fetching and real-time subscription use cases. The post demonstrates how to define GraphQL types required for an Action and create a simple Express app to handle the resolver bit. It also covers permissions, relationship data, existing REST APIs, query actions, and supported frameworks.

Company
Hasura

Date published
Sept. 3, 2020

Author(s)
Gavin Ray

Word count
1264

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.