At a glance
- Identifier: #674
- Stage: RFC 0 / Strawman
- Champion: @kassens
- Latest activity: Advanced to RFC 0 on 2020-01-22
- Spec PR: https://github.com/graphql/graphql-spec/pull/674
Spec PR description
Sometimes, product code might only be interested in the existence of an object. Currently, this forces a workaround of either querying __typename or adding a bool field like has_thing.
It seems natural and not too confusing to allow empty selections:
query {
event {
location {}
}
}
The response should either return null or an empty object for location.
(The spec changes are incomplete.)
Timeline
January 2020
- Advanced to RFC 0 on 2020-01-22 by IvanGoncharov
- Spec PR created on 2020-01-21 by kassens
- @kassens committed "[RFC] allow empty selections" on 2020-01-21