Skip to content

Incorporate meta-fields into ExecuteCollectedFields #1177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions spec/Section 6 -- Execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,9 +581,14 @@ variableValues):
- For each {responseName} and {fields} in {collectedFieldsMap}:
- Let {fieldName} be the name of the first entry in {fields}. Note: This value
is unaffected if an alias is used.
- Let {fieldType} be the return type defined for the field {fieldName} of
{objectType}.
- If {fieldType} is defined:
- If {fieldName} is a meta-field as defined in the Introspection section:
- Let {responseValue} be the result of resolving that meta-field as per the
rules of the [Introspection](#sec-Introspection) section.
- Set {responseValue} as the value for {responseName} in {resultMap}.
- Otherwise, if a field named {fieldName} is defined on {objectType}:
- Let {fieldType} be the return type defined for the field {fieldName} of
{objectType}.
- Assert: {fieldType} must exist.
- Let {responseValue} be {ExecuteField(objectType, objectValue, fieldType,
fields, variableValues)}.
- Set {responseValue} as the value for {responseName} in {resultMap}.
Expand Down