Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andyrichardson/is-introspection-query

❓ is it though?
https://github.com/andyrichardson/is-introspection-query

Last synced: 16 days ago
JSON representation

❓ is it though?

Awesome Lists containing this project

README

        

# is-introspection-query

A secure method of checking whether a GraphQL query is introspecting.

```tsx
import isIntrospectionQuery from "is-introspection-query";
import { parse } from "graphql";

// Strings
isIntrospectionQuery(parse(query));

// Document nodes
isIntrospectionQuery(query);
```