Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drash/src/services/graphql/graphql.ts>GraphQL.TypedQueryDocumentNode

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
interface GraphQL.TypedQueryDocumentNode
implements DocumentNode
import { type GraphQL } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/graphql.ts";
const { TypedQueryDocumentNode } = GraphQL;

Wrapper type that contains DocumentNode and types that can be deduced from it.

Type Parameters

optional
TResponseData = Record<string, any>
optional
TRequestVariables = Record<string, any>

Properties

readonly
definitions: ReadonlyArray<ExecutableDefinitionNode>
optional
__ensureTypesOfVariablesAndResultMatching: (variables: TRequestVariables) => TResponseData

This type is used to ensure that the variables you pass in to the query are assignable to Variables and that the Result is assignable to whatever you pass your result to. The method is never actually implemented, but the type is valid because we list it as optional