graphql-go
graphql-go copied to clipboard
GraphQL server with a focus on ease of use
# Input ## Schema ```graphql interface Animal { name: String! } type Dog implements Animal { name: String! breed: String! } type Cat implements Animal { name: String! livesLeft: Int!...
Currently the library only supports directives on `FIELD_DEFINITION`. When/if we add support for more directive locations, the users who already use the current directive API would face breaking changes. We...
Allow users to add validation plugin(s) in order calculate complexity analysis. The following items need to be implemented: 1. Visit all fields from the query and calculate complexity by given...
The GraphQL spec [supports a leading pipe operator for union type definitions](https://github.com/graphql/graphql-spec/pull/320), but the parser in graphql-go fails on schemas defined that way. Notably, in [prettier has started using this...
There is no way to return an error once a connection is established. ``` func (r *Resolver) OnMessage(ctx context.Context, args struct { ChatID string }) (chan *MessageResolver, error) { ch...
Looking at the code in the master branch there is an example about defining and using a simple `hasRole` directive. This example can't be used as reference to do the...