graphql-code-generator VS graphql-cli

Compare graphql-code-generator vs graphql-cli and see what are their differences.

graphql-code-generator

A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins. (by dotansimha)

graphql-cli

📟 Command line tool for common GraphQL development workflows (by Urigo)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
graphql-code-generator graphql-cli
69 6
10,593 1,983
- -
9.3 0.0
4 days ago about 1 month ago
TypeScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

graphql-code-generator

Posts with mentions or reviews of graphql-code-generator. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-15.

graphql-cli

Posts with mentions or reviews of graphql-cli. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-21.
  • Fast Frontend Development With Mocked GraphQL
    3 projects | dev.to | 21 Sep 2022
    The other case is useful when we want to work on the frontend without being affected by the internet connection. In this case, the schema has to be the same as the live one. We can easily get the same schema from the backend by downloading it with the help of some tools, like graphql-cli{target=_blank} or get-graphql-schema{target=_blank}.
  • What's new in GraphQL CLI 4.1
    4 projects | dev.to | 29 Jul 2021
    As always, we want your feedback! We would love to hear your suggestions and ideas to help make GraphQL CLI even better. Reach out to us through GitHub or join our Discord community server.
    4 projects | dev.to | 29 Jul 2021
    GraphQL CLI is your one-stop shop for developing full-stack GraphQL applications in Node.js. With GraphQL CLI you can create and run a new GraphQL application in just a few seconds! Just declare your GraphQL schema and you can perform code generation, schema validation, introspection and more through intuitive CLI commands.
  • GraphQL Config
    3 projects | dev.to | 29 Jul 2021
    We’ve already merged configurations from GCG, GraphQL Inspector, GraphQL CLI — and are looking to learn and integrate with GraphiQL, AppSync, Apollo, Gatsby, VS-Code extensions, Relay and the GraphQL team at Facebook and any GraphQL tool creators
  • The Power of TypeScript for GraphQL Union Type Filters
    2 projects | dev.to | 2 Mar 2021
    Using the GraphQL CLI and the GraphQL Code Generator generating types for a graphcms is really handy.

What are some alternatives?

When comparing graphql-code-generator and graphql-cli you can also consider the following projects:

nexus - Code-First, Type-Safe, GraphQL Schema Construction

contentful-typescript-codegen - Generate TypeScript interfaces from a Contentful environment

TypeGraphQL - Create GraphQL schema and resolvers with TypeScript, using classes and decorators!

TypeORM - ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.

rtk-query-codegen

lint-staged - 🚫💩 — Run linters on git staged files

graphql-codegen-relay-plugins - Use the power of the relay-compiler with every GraphQL project!

redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development

orval - orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺

next-auth-example - Example showing how to use NextAuth.js with Next.js

graphql-eslint - ESLint parser, plugin and set rules for GraphQL (for schema and operations). Easily customizable with custom rules. Integrates with IDEs and modern GraphQL tools.

openapi-typescript-codegen - NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification