Our great sponsors
-
tinyhttp-deno
Discontinued 🦕 Deno port of tinyhttp, 0-legacy, tiny & fast web framework [Moved to: https://github.com/deno-libs/tinyhttp] (by deno-libs)
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
graphql-playground
🎮 GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration)
-
obsidian
GraphQL, built for Deno - a native GraphQL caching client and server module (by open-source-labs)
-
graphql-tag
🦕 Create a GraphQL schema AST from template literal. Deno port of `graphql-tag` library (by deno-libs)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
graphql_tools
Discontinued [DEPRECATED] 🦕 Useful tools to create and manipulate GraphQL schemas. Deno port of `graphql-tools` library
In this post I would like to show how to build a GraphQL API server with gql. At the moment there are a few GraphQL server modules for Deno, such as obsidian and oak_graphql but all of them are either standalone or framework-specific. gql instead, is a framework-agnostic middleware so I will use it with Deno std's net/http.
✨ Works with std/http, tinyhttp and Opine out-of-the-box
✨ Works with std/http, tinyhttp and Opine out-of-the-box
⚡ GraphQL Playground integration (via graphiql: true)
In this post I would like to show how to build a GraphQL API server with gql. At the moment there are a few GraphQL server modules for Deno, such as obsidian and oak_graphql but all of them are either standalone or framework-specific. gql instead, is a framework-agnostic middleware so I will use it with Deno std's net/http.
In this post I would like to show how to build a GraphQL API server with gql. At the moment there are a few GraphQL server modules for Deno, such as obsidian and oak_graphql but all of them are either standalone or framework-specific. gql instead, is a framework-agnostic middleware so I will use it with Deno std's net/http.
We'll start with declaring a schema using type definitions and resolvers using graphql_tag and graphql_tools Deno modules, similar to how you do it with Apollo Server or GraphQL Yoga:
We'll start with declaring a schema using type definitions and resolvers using graphql_tag and graphql_tools Deno modules, similar to how you do it with Apollo Server or GraphQL Yoga:
Related posts
- graphql_tools: Useful tools to create and manipulate GraphQL schemas. Deno port of `graphql-tools` library.
- graphql-tag — create a GraphQL AST from template literal. Deno port of `graphql-tag` library
- Migrating Netflix to GraphQL Safely
- Introducing Obsidian 8.0 - A Native Deno GraphQL Caching Solution
- gql - universal GraphQL HTTP middleware for Deno