graphql-python / graphql-python/graphql-core-legacy
Pass field names more accessibly to object resolvers
Open
- Dominant language
- Python
- Stars
- 372
- Forks
- 175
- PR merge metrics
- No merged PRs in 30d
Description
Currently, if you want to look at the set of fields being requested by a child object in a resolver, you have to look deep in the AST, with an expression like this:
```
(field.name.value for field in info.field_asts[0].selection_set.selections)
```
It would be nice if these names were attached directly to the `info` object, even as a property, so that things like database column selection are easier to implement.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.