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

x/drash/src/services/graphql/deps.ts>GraphQL.getVisitFn

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

Given a visitor instance, if it is leaving or not, and a node kind, return the function the visitor runtime should call.

Parameters

visitor: Visitor<any>
kind: string
isLeaving: boolean

Returns

Maybe<VisitFn<any>>