Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-codegen/cli

Package Overview
Dependencies
Maintainers
4
Versions
5565
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-codegen/cli

  • 5.0.3-alpha-20240913041310-a2b5ef79c486e94ca8ce1af4e05b2026ee9a79e2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.7M
increased by6%
Maintainers
4
Weekly downloads
 
Created

What is @graphql-codegen/cli?

The @graphql-codegen/cli package is a command-line interface tool that automates the generation of GraphQL types, resolvers, and operation functions based on your GraphQL schema and operations. It supports multiple programming languages and frameworks, making it a versatile tool for developers working with GraphQL.

What are @graphql-codegen/cli's main functionalities?

TypeScript Types Generation

Generates TypeScript typings for GraphQL queries, mutations, and subscriptions, making it easier to work with GraphQL in TypeScript projects. The configuration file 'codegen.yml' specifies the schema and documents locations, plugins, and the output file paths.

graphql-codegen --config codegen.yml

Resolvers Signature

Creates TypeScript or JavaScript signatures for GraphQL resolvers based on the schema. This helps in implementing resolvers by providing type safety and auto-completion in IDEs.

graphql-codegen --config codegen.yml

Fragment Matcher

Generates a utility for optimizing cache behavior with GraphQL clients like Apollo Client by generating a fragment matcher file. This is particularly useful for interfaces and union types in GraphQL.

graphql-codegen --config codegen.yml

Other packages similar to @graphql-codegen/cli

Keywords

FAQs

Package last updated on 13 Sep 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc