graphql-go
graphql-go copied to clipboard
GraphQL server with a focus on ease of use
This change is still WIP and is not yet ready to merge. But it passes all test already and I would like to coordinate the merge. Are you interested in...
I am not sure about anybody else, but I don't see any support for writing all schema using SDL in a file and then importing the schema into GraphQL from...
### How to reproduce: - Define a schema with a nullable field, and a non-nullable sub-field - Have the schema for the non-nullable field return an error ### Expected: The...
The example is pretty straightforward. However, I hope this small documentation will help people get started faster.
Add something like https://github.com/pa-bru/graphql-cost-analysis to detect and protect against malicious resource hogging queries.
If there are serious errors the returned `Data` field might be empty, which is a JSON parse error. So we need to check errors first, then the rest. This is...
According to the GraphQL specification both object types and input types should have at least one field. See [here](http://facebook.github.io/graphql/October2016/#sec-Object-type-validation) and [here](http://facebook.github.io/graphql/October2016/#sec-Input-Object-type-validation). So, the following program should crash saying something about...
Make `Schema.Validate` accept arguments and pass them over to `validation.Validate` to allow parameterized queries to be validated correctly. ---- I'm having a problem with [`func (s *Schema) Validate(queryString string) []*errors.QueryError`](https://github.com/graph-gophers/graphql-go/blob/8f92f34fc59823d34fc08bfdc9fd266b854e2b50/graphql.go#L145)....
Compilation error fixed type TraceValidationFinishFunc = TraceQueryFinishFunc change to: type TraceValidationFinishFunc TraceQueryFinishFunc
When running tests, the errors are not equal. When using []*errors.QueryError{errors.Errorf("%s",msg)}, all things being equal the errors are returned as unequal. Comparing just the messages will be adequate for application...