🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

generate-graphql-introspection

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generate-graphql-introspection

Generate introspection from GraphQL schema.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

README

npm version

Generate introspection from GraphQL schema.

npm i generate-graphql-introspection --save-dev

Usage:

npx generate-graphql-introspection -s schema.graphql -o introspection.json

Command

Usage:
  # All .graphql files in the graphql directory
  generate-graphql-introspection -s "graphql/*.graphql" -o introspection.json

  # Specify one file
  generate-graphql-introspection -s graphql/schema.graphql -o introspection.json

  # Specify multiple files
  generate-graphql-introspection -s graphql/user.graphql -s graphql/order.graphql -o introspection.json

Options:
  -s --source    Specify the source glob.
  -i --ignore    Specify the rule to ignore files in source.
  -o --output    Specify the output file.
  -h --help      Print help message.

Programmatically usage

import { generateGraphQLIntrospection } from 'generate-graphql-introspection'

generateGraphQLIntrospection({
  source: ['graphql/*.graphql'],
  output: 'introspection.json'
})

Keywords

generate

FAQs

Package last updated on 25 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts