New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@stackup/codegen

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackup/codegen

Generate types for a GraphQL API

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
6
-92.77%
Maintainers
1
Weekly downloads
 
Created
Source

@stackup/codegen

Build Version License

A zero-config CLI tool to generate GraphQL type definitions and React Hooks. It's a thin wrapper around GraphQL code generator.

Install

$ yarn add @stackup/codegen --dev

Usage

$ yarn codegen --help
Usage: codegen [options]

generate type definitions from GraphQL queries

Options:
  -V, --version          output the version number
  -i, --input <input>    glob of queries to generate types for
  -o, --output <output>  path to file that will be generated
  -s, --schema <schema>  URL or file path to a GraphQL schema
  --suffix               append suffix (e.g. Mutation, Query)
  --immutable            generate readonly types
  -h, --help             display help for command

FAQs

Package last updated on 08 May 2020

Related posts