graphql-go / graphql-go/graphql

len(ResolveParams.Info.FieldASTs) is always 1

Open
#283 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.1k
Forks
845
PR merge metrics
No merged PRs in 30d

Description

Hi,
A number of Issues I read here, as well as seemingly the intention of the struct is that FieldASTs should contain the hierarchy of fields leading up to the field currently being resolved. However, for me there is only ever FieldASTs[0], which is the field currently being executed and the parent fields are unrepresented. Is this normal?
I'm trying to get an []string of the field names leading to the current resolution!
Thanks, Dan.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.