graphqlgen
graphqlgen copied to clipboard
⚙️ Generate type-safe resolvers based upon your GraphQL Schema
With the splitting of `graphqlgen.ts` into several files (as per https://github.com/prisma/graphqlgen/issues/115) the function of the `output` setting in `graphqlgen.yml` needs to be updated. Currently, it's used to specify a single...
## Description The outputted TS contains redundant type info. ## Steps to reproduce Here's my schema: ```graphql type Query { foo(bar: String!): String! } ``` Now, I run `yarn graphqlgen`...
Previously, when the `TypeMap` was still a thing, it was possible to connect any interface to a generated type. Take the following example; I had three different types (`RegularChannelParent`, `OnboardingChannelParent`...
Currently only typescript types defined as `export interface MyType {}` are used by `graphqlgen`, but `export type MyType = SomeOtherType` should work too.
Support tslint interface rule ## Description Some projects have adopted https://palantir.github.io/tslint/rules/interface-name/ tslint interface rule making all interfaces starting with a captial I. graphqlgen does not comply with that and this...
It's a very common use-case to use GraphQL as a gateway (as opposing to a GraphQL monolith/service) in front of other services (e.g. gRPC, Thrift, ...). I'd like to explore...
In the initial version of `graphqlgen` (formerly `graphql-resolver-codegen`) there was a first implementation of ReasonML support. We should bring this functionality back to life 🚀 Would be awesome if someone...
The current scaffolding workflow relies on copy&pasting from a separate folder into the users actual resolver implementations. Ideally we'd manage to implement a workflow where the missing resolver functions/files would...
A common workflow for large scale projects is to write smaller self contained graphql schemas, and merge them into a single API via schema stitching. The current workflow for graphqlgen...
The generation of `defaultResolvers` is pretty sophisticated as it's based on calculating the "type-safe intersection" of the GraphQL type definition and a TS interface definition. (In the future also for...