Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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?
- Host: GitHub
- URL: https://github.com/andyrichardson/is-introspection-query
- Owner: andyrichardson
- License: mit
- Created: 2020-12-03T16:27:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-03T16:57:41.000Z (about 4 years ago)
- Last Synced: 2024-11-30T17:49:05.411Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```