graphql-code-generator
graphql-cli
Our great sponsors
graphql-code-generator | graphql-cli | |
---|---|---|
69 | 6 | |
10,593 | 1,983 | |
- | - | |
9.3 | 0.0 | |
5 days ago | about 1 month ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
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
-
Integrating GraphQL Codegen with Storyblok: Step-by-Step Guide
The @graphql-codegen library is a bridge between your GraphQL schema and the actual code you write. It automates the generation of boilerplate code, ensuring that your data fetching layer is always up to date with your content structure.
-
The complete GraphQL Scalar Guide
In typescript and typescript-resolvers plugin v4.0.1, we have reverted the default ID Scalar input type to string. Read the pull request for more details.
-
Looking4Library: A GraphQL client that has query methods on the generated types
See https://github.com/dotansimha/graphql-code-generator with @graphql-codegen/typescript-graphql-request plugin
-
graphql-code-generator VS gqless - a user suggested alternative
2 projects | 2 Jun 2023
-
Making GraphQL Codegen Work For You: GraphQL Integration with React and TypeScript
Graphql Codegen is a code generation library for GraphQL that enables developers to generate custom code. It provides us developers with the ability to generate type definitions, query builders, documentation, and more by analyzing our GraphQL schemas. This makes it easier and faster to build GraphQL applications and reduces the time spent coding.
-
help wanted: Typescript GraphQL Types Response
Hey, not near a computer right now, but I hope this example can help you in the meantime: https://github.com/dotansimha/graphql-code-generator/tree/master/examples/typescript-esm
I guess just a PR against https://github.com/dotansimha/graphql-code-generator/blob/master/website/src/pages/docs/getting-started/index.mdx?
It is already incoming, with an example in the repository. 😇 https://github.com/dotansimha/graphql-code-generator/pull/8863
-
Why we ditched GraphQL for tRPC
GraphQL Codegen generates frontend types and React hooks from our GraphQL request definitions.
-
A journey towards a type-safe GraphQL API server
There are two main approaches to keeping the types of the GraphQL schema and entities in business logic in sync. You can generate the schema based on your TypeScript code (e.g. TypeGraphQL), or you can generate types based on your schema (e.g. GraphQL Code Generator). We opted for the latter since it slotted right into our existing GraphQL server implementation using Apollo Server.
graphql-cli
-
Fast Frontend Development With Mocked GraphQL
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
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.
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
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
Using the GraphQL CLI and the GraphQL Code Generator generating types for a graphcms is really handy.
What are some alternatives?
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