is-introspection-query
v0.0.2
Published
A secure method of checking whether a GraphQL query is introspecting.
Downloads
86
Maintainers
Readme
is-introspection-query
A secure method of checking whether a GraphQL query is introspecting.
import isIntrospectionQuery from "is-introspection-query";
import { parse } from "graphql";
// Strings
isIntrospectionQuery(parse(query));
// Document nodes
isIntrospectionQuery(query);