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

Turn your Java REST API to GraphQL using Hasura Actions

What's this blog post about?

This post discusses how to use Hasura Actions to convert Java REST APIs to GraphQL. It explains that writing a GraphQL server from scratch involves setting up the schema, type definitions, and resolvers. However, 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 then explores how to define types and configure endpoints using Actions in Hasura Console. It demonstrates the process of creating a new Hasura Cloud project, defining Action and Type definitions, generating boilerplate code for Java server setup, setting up Spring Boot, exposing the server on a public URL, and finally testing the GraphQL API with a mutation. The post also covers permissions, relationship data, existing REST APIs, query actions, and supported frameworks.

Company
Hasura

Date published
Sept. 22, 2020

Author(s)
Vishwa Mehta

Word count
1539

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.