graphql icon indicating copy to clipboard operation
graphql copied to clipboard

An implementation of GraphQL for Go / Golang

Results 139 graphql issues
Sort by recently updated
recently updated
newest added

Because of the efficiency of reflect, Spend a lot of time in the "visitor" function. Why can't we support cache for this. do this like gqlgen or other

I get a ``` panic: reflect: call of reflect.Value.Field on zero Value goroutine 1 [running]: reflect.Value.Field(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4f2ccc0) /Users/arda/.gvm/gos/go1.12.4/src/reflect/value.go:813 +0x127 github.com/graphql-go/graphql.BindFields(0x4b62dc0, 0x0, 0x0) /Users/arda/.gvm/pkgsets/go1.12.4/global/pkg/mod/github.com/graphql-go/[email protected]/util.go:44 +0x4b8 github.com/graphql-go/graphql.BindFields(0x4c2d060,...

This PR eases writing and using custom validation rules. It includes two changes: 1. make `graphql.Do()` be able to change validation rules by adding `ValidationRule` field to `graphql.Params` and use...

enhancement

Extension HasResult() not context HasResult() There should be a parameter context like HasResult(ctx context.Context)

Type cast code: https://github.com/graphql-go/graphql/blob/master/examples/todo/main.go#L156 ```go idQuery, isOK := params.Args["id"].(string) ``` args for type: https://github.com/graphql-go/graphql/blob/master/examples/todo/main.go#L149 ```go Args: graphql.FieldConfigArgument{ "id": &graphql.ArgumentConfig{ Type: graphql.String, }, }, ``` Since the arguments validation is done...

Is it possible to write a function that can return the projection of a json object via GraphQL query? ``` func project(doc map[string]interface{}, query string) -> returns the output? ```

question

I discovered this bug trying to resolve this problem https://github.com/graphql-go/graphql/issues/183#issuecomment-659317404 . Essentially, this library does not allow to have **anonymous fields for compositions** since those fields are not evaluated. **Example**...

Hello, graphql-go authors. I began this PR because I encountered a bug in `BindFields` where the name given to a type would be the JSON field name, which resulted in...

How I get the http.ResponseWriter in Resolve? ``` Resolve: func(p graphql.ResolveParams) (interface{}, error) { r := p.Context.Value("httprequest").(*http.Request) p.Context.Value("?????").(http.ResponseWriter)? } ```

Do not emit JSON when there is no error locations Just conform to the spec : 7.1.2 If an error can be associated to a particular point in the requested...