UNPKG

@escape.tech/graphql-armor

Version:

Dead-simple, yet highly customizable security middleware for Apollo GraphQL servers shield

11 lines (10 loc) 498 B
import type { Plugin } from '@envelop/core'; import type { GraphQLArmorConfig } from '@escape.tech/graphql-armor-types'; export declare const EnvelopArmorPlugin: <PluginContext extends Record<string, any> = {}>(config?: GraphQLArmorConfig) => Plugin<PluginContext>; export declare class EnvelopArmor<PluginContext extends Record<string, any> = {}> { private readonly protections; constructor(config?: GraphQLArmorConfig); protect(): { plugins: Plugin<PluginContext>[]; }; }