graphql-core-legacy icon indicating copy to clipboard operation
graphql-core-legacy copied to clipboard

Include the ancestor field ast in the resolver's `ResolveInfo`

Open yen223 opened this issue 8 years ago • 1 comments

Just as how field_asts contains the descendants to be resolved after a resolver, it would be nice if the ResolveInfo object also contains the field ast's ancestors that leads to the currently-resolved field.

This information would make https://github.com/graphql-python/graphql-core/issues/127 really easy to resolve.

yen223 avatar Aug 02 '17 06:08 yen223

I started adding this feature at https://github.com/graphql-python/graphql-core/pull/148 would love feedback

ekampf avatar Oct 31 '17 20:10 ekampf