Skip to content

Instantly share code, notes, and snippets.

View kristijorgji's full-sized avatar

Kristi Jorgji kristijorgji

View GitHub Profile
@kristijorgji
kristijorgji / graphql-field-finder.js
Created June 24, 2019 09:38 — forked from stubailo/graphql-field-finder.js
Find all GraphQL queries in your codebase that use a certain field
// This is a script that looks for usage of a specific field in GraphQL
// queries in your codebase.
//
// First, add a .graphqlconfig in your directory pointing to your schema
// Then, run the script with:
//
// node graphql-field-finder.js Field.name
//
// It will output a list of files and queries that contain the field you're
// looking for: