graphql
graphql copied to clipboard
executor: adds support for anonymous contained structs
Overview
- Built on top of: https://github.com/graphql-go/graphql/pull/274
- closes: https://github.com/graphql-go/graphql/issues/170
Test plan
-
go test ./...
HI, wondering if there is any chance to merge this?
@chris-ramon @pavelnikolov Same question, would you please merge it?
Same here
Thanks for letting us know how important this PR are for you guys.
I'll jump back to get this merge as soon as I get the chance today/tomorrow.
Coverage increased (+0.009%) to 91.787% when pulling d35d558066e2ec602528a5db16f29e9cd06173de on anon-contained-struct into a7e15c0298411af18c694ca387e733acef287104 on master.
I think this will resolve the issue without using user-provided resolve function.
if typeField.Anonymous && typeField.Type.Kind() == reflect.Struct {
anonymousResolvedValue, err := defaultResolveStruct(valueField, fieldName)
if err != nil {
return nil, err
} else if anonymousResolvedValue != nil {
return anonymousResolvedValue, nil
}
}
Just commented on the issue, but just saw this PR. I'm still interested in this!
Any news on this ?
Any updates on this PR?
Still waiting for the merge as qell...
This PR has conflicts.
Is this still being worked on?
Not that I am aware of
Hi how to use this feature on graphq-go/graphql v0.8.0 (master branch)? about Anonymous(embed) struct
Bump