graphql-code-generator VS rtk-query-codegen

Compare graphql-code-generator vs rtk-query-codegen 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)
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 rtk-query-codegen
69 4
10,613 90
- -
9.1 0.0
2 days ago over 2 years ago
TypeScript TypeScript
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.

rtk-query-codegen

Posts with mentions or reviews of rtk-query-codegen. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-31.
  • FastAPI vs Next.js API for Backend
    1 project | /r/FastAPI | 23 Oct 2021
    The nice thing is FastAPI generates OpenAPI. And you can use that to generate a fully typed React-Redux-Typescript client https://github.com/rtk-incubator/rtk-query-codegen . So oddly enough it's even faster than code sharing because everything is generated for you, whereas otherwise you could share interfaces but you'd still have to write the client code.
  • Why Redux Is More Relevant Than Ever Today
    3 projects | /r/reactjs | 31 Aug 2021
    As an example, this is the "boilerplate" for >20 complete api endpoints and hooks for them: https://github.com/rtk-incubator/rtk-query-codegen/blob/next/test/fixtures/generated.ts
  • Redux Toolkit 1.6.0 - new RTK Query data caching API!
    8 projects | /r/reactjs | 7 Jun 2021
    But really, that should only be a real concern once you reach 50+ endpoints. If you look at the autogenerated api for the OpenAPI petstore example with somewhere around 20+ endpoints, that's still pretty manageable. (And autogenerated, so nothing to worry about anyways.)
  • Getting array of values from Literal type
    1 project | /r/typescript | 29 Apr 2021
    Currently using dtsgenerator but will probably migrate to RTK query codegen soon, neither of which has the functionallity for that.

What are some alternatives?

When comparing graphql-code-generator and rtk-query-codegen you can also consider the following projects:

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

oazapfts - Generate TypeScript clients to tap into OpenAPI servers

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

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

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

redux - A JS library for predictable global state management

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.

ngrx-rtk-query - Make RTK Query with Hooks works in Angular Applications

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

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

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. 🍺