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

x/oak_graphql/graphql-tools/utils/index.ts>Loader

A simple graphql middleware for oak deno framework.
Latest
interface Loader
import { type Loader } from "https://deno.land/x/oak_graphql@0.6.4/graphql-tools/utils/index.ts";

Type Parameters

optional
TPointer = string
optional
TOptions extends SingleFileOptions = SingleFileOptions

Methods

loaderId(): string
canLoad(pointer: TPointer, options?: TOptions): Promise<boolean>
optional
canLoadSync(pointer: TPointer, options?: TOptions): boolean
load(pointer: TPointer, options?: TOptions): Promise<Source | never>
optional
loadSync(pointer: TPointer, options?: TOptions): Source | never