Skip to main content
Module

x/graphql_request/mod.ts

Minimal GraphQL client supporting Deno for scripts or simple apps
Latest
import * as graphqlRequest from "https://deno.land/x/graphql_request@v4.1.0/mod.ts";

Functions

Send a batch of GraphQL Document to the GraphQL server for exectuion.

Convenience passthrough template tag to get the benefits of tooling for the gql template tag. This does not actually parse the input into a GraphQL DocumentNode like graphql-tag package does. It just returns the string with any variables given interpolated. Can save you a bit of performance and having to install another package.

Send a GraphQL Query to the GraphQL server for execution.

Send a GraphQL Document to the GraphQL server for execution.