/plushcap/analysis/hasura/building-graphql-apis-with-deno-and-hasura

Building GraphQL APIs with Deno and Hasura

What's this blog post about?

In this tutorial, we explore building a GraphQL API backend with Deno and creating a unified GraphQL layer with Hasura to solve custom business logic requirements of an app. We begin by discussing what Deno is - a runtime for JavaScript (and TypeScript) that is secure by default, ships only a single executable, uses the V8 engine, and is written in Rust. We then delve into setting up a GraphQL server with Deno using Oak framework and the GraphQL middleware oak-graphql to create an endpoint. Next, we define GraphQL schema with type definitions and resolvers for operations such as fetchUser and insertUser. Finally, we discuss packaging and deployment of Deno with Docker, local dev with ngrok, deploying Hasura to get a GraphQL API, adding the Deno server as a remote schema, establishing remote relationships, and using Deno Server as a Hasura Action handler.

Company
Hasura

Date published
Feb. 10, 2021

Author(s)
Praveen Durairaju

Word count
1371

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.