genqlient
a truly type-safe Go GraphQL client (by Khan)
graphql-go
GraphQL server with a focus on ease of use (by graph-gophers)
genqlient | graphql-go | |
---|---|---|
6 | 5 | |
983 | 4,601 | |
1.2% | 0.3% | |
6.7 | 6.5 | |
29 days ago | 23 days ago | |
Go | Go | |
MIT License | BSD 2-clause "Simplified" 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.
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.
genqlient
Posts with mentions or reviews of genqlient.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-01.
-
GitHub - Warashi/compgen: Compgen is a gqlgen plugin designed to simplify the generation of ComplexityRoot for gqlgen.
The client support in particular is currently very awkward. For instance, there's this discussion around Hasura in the Khan/genqlient repo: https://github.com/Khan/genqlient/issues/272
-
How to build a Snowflake API?
An example of a Snowflake API request using Go. This example uses the Go standard library, so it doesn’t require additional dependencies; however, in production, you could use a library like shurcooL/graphql or Khan/genqlient for stronger typing.
-
Should I use Ent?
I also use https://github.com/Khan/genqlient in tandam with it to generate strongly typed graphql clients. Here is a decent example of a golang CLI using it: https://github.com/superfly/flyctl/tree/master/gql
-
gqlclient: A GraphQL client and code generator for Go
You might also be interested in genqlient, which Khan Academy released earlier this year. It's closer to what you've done, though I don't think we support uploads because that isn't something we've needed to support.
-
There is already around a lite client Golang fo graphql?
If you want to just generate a client based on a schema, I highly recommend https://github.com/Khan/genqlient which we use at work.
-
State of GraphQL packages in Go?
Although it is supposedly not ready for production, I'm personally using https://github.com/Khan/genqlient from the Khan Academy folks.
graphql-go
Posts with mentions or reviews of graphql-go.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-07.
- YSK: The less popular variant graph-gophers/graphql-go is better maintained than graphql-go/graphql
-
YarQL, A different approach to making GraphQL servers in Go
I'm not sure if I'm going to stop supporting anything outside of int32 and float64 as that was one of my biggest frustrations when using graphql-go.
-
State of GraphQL packages in Go?
I have always preferred https://github.com/graph-gophers/graphql-go. I still write my definitions in .graphql files and pese them with the library. Then you can easily write resolvers or just return model objects if they match the definitions.
-
What is the best or one of the best go library to implement a server based on Graphql?
For my current project we use ent (https://entgo.it) + gqlgen and its a really nice combo. As well as the two other popular graphql libraries for go (https://github.com/graphql-go/graphql and https://github.com/graph-gophers/graphql-go), I’ve also kept my eyes on graphjin (https://github.com/dosco/graphjin) and thunder (https://github.com/samsarahq/thunder) but to me there is no reason to not use ent with gqlgen - it’s just so nice :)
What are some alternatives?
When comparing genqlient and graphql-go you can also consider the following projects:
graphql-go - An implementation of GraphQL for Go / Golang
gqlgen - go generate based graphql server library
graphql - Simple low-level GraphQL HTTP client for Go
graphjin - GraphJin - Build NodeJS / GO APIs in 5 minutes not weeks
bramble - A federated GraphQL API gateway
dgraph - The high-performance database for modern applications
graphql - GraphQL is a query language and execution engine tied to any backend service. [Moved to: https://github.com/graphql/graphql-spec]
graphql-client - A GraphQL Client for .NET Standard
yarql - YarQL!! A different approach to making GraphQL servers in Go