Skip to main content
Module

x/obsidian/src/DoSSecurity.ts>default

GraphQL, built for Deno - a native GraphQL caching client and server module
Go to Latest
function default
import { default } from "https://deno.land/x/obsidian@v5.0.0/src/DoSSecurity.ts";

Tests whether a queryString (string representation of query) exceeds the maximum nested depth levels (queryDepthLimit) allowable for the instance of obsidian

Parameters

queryString: string

the string representation of the graphql query

optional
queryDepthLimit: number = [UNSUPPORTED]

number representation of the maximum query depth limit. Default 0 will return undefined. Root query doesn't count toward limit.

Returns

void

boolean indicating whether the query depth exceeded maximum allowed query depth