gqlgen
Languages and libraries
graphql code generator
SHOW HN2018
172points
29comments
#221of 2,155 in 2018
Top 11%of 2018 by points
How HN took it
CuriousMostly questions and neutral comments
1 positive, 7 neutral or asking, 0 mixed, 2 critical, out of 10 comments about the project. Thread score +0.03.
Idea: 1 for, 2 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Interesting and useful for Go GraphQL developers
From 1 comment
This is super cool. It looks very similar to graphql-binding https://github.com/graphql-binding/graphql-binding GraphQL Bindings are generated from a GraphQL schema and provides…
sorenbs on HN
Objections
Types-first generation is hard for unions, enums and directives
From 1 comment
I explored going type first before writing this and you could get pretty close. The details get hard though, how do you represent unions vs enums? even knowing what implements an…
vektah on HN
Schema-first approach may not suit typed languages
From 1 comment
I feel that, in typed languages, the only GraphQL oriented code you should be writing is the schemas and the resolvers. Manually implementing the models in your language's type…
013a on HN
Questions
Is it production ready?
From 1 comment
Is it production ready?
akmittal on HN
Does it generate routing and how much resolver code is needed?
From 1 comment
Background: I've been using Typescript + graphql-yoga/apollo-server/express + Prisma to create a GraphQL server. I'm not familiar with golang. I found this interesting. So just…
Blackstone4 on HN
Alternatives named
graphql-binding
From 1 comment
This is super cool. It looks very similar to graphql-binding https://github.com/graphql-binding/graphql-binding GraphQL Bindings are generated from a GraphQL schema and provides…
sorenbs on HN
Juniper (Rust)
From 1 comment
I'd imagine any decent library would provide an escape hatch around the codegen, so you can specify your own types if you'd like. The other option is to only write the Go types,…
013a on HN
samsarahq/thunder
From 1 comment
At Samsara our golang graphql implementation (https://github.com/samsarahq/thunder) works this way. We write out resolver functions using plain old go types and use some…
theswan on HN
Prisma
From 1 comment
This only generates the server and you need to write your own resolvers, connect to database, ... Prisma on the other hand handle everything out of the box for you.
thangngoc89 on HN