Skip to main content
Module

x/graphql_deno/mod.ts>getOperationAST

GraphQL-JS ported to Deno
Latest
function getOperationAST
import { getOperationAST } from "https://deno.land/x/graphql_deno@v15.0.0/mod.ts";

Returns an operation AST given a document AST and optionally an operation name. If a name is not provided, an operation is only returned if only one is provided in the document.

Parameters

documentAST: DocumentNode
operationName: Maybe<string>