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

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

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

A visitor is comprised of visit functions, which are called on each node during the visitor's traversal.

Type Parameters

TAnyNode
optional
TVisitedNode = TAnyNode
definition: (
key: string | number | undefined,
parent: TAnyNode | ReadonlyArray<TAnyNode> | undefined,
path: ReadonlyArray<string | number>,
ancestors: ReadonlyArray<TAnyNode | ReadonlyArray<TAnyNode>>,
) => any