UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks

10 lines (9 loc) 317 B
import type { DocumentNode, FieldNode } from "graphql"; export type Result = undefined | { type: "query"; fields: FieldNode[]; } | { type: "mutation"; fields: FieldNode[]; }; export declare function extractTopLevelFieldsFromDocument(document: DocumentNode, operationName: string | undefined): Result;