-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Minor editorial tweaks following the merge of #1039 #1175
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
Conversation
For `type User { name: String }`, `User.name` is a field of an object type (`User`). Clarify that we mean the return type of the field, not the type to which it belongs.
✅ Deploy Preview for graphql-spec-draft ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Valid operations must supply a _selection set_ for every field whose return type | ||
is an object type, so this operation is not valid: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User.name
is a "field of an object type", but should not have a selection set.
During execution, the simultaneous execution of fields with the same response | ||
name is accomplished by {CollectSubfields()} before execution. | ||
name is accomplished by performing {CollectSubfields()} before their execution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
During execution, ... before execution.
did not read well.
root type must be known, as well as whether the fields must be executed in a | ||
series, or normally by executing all fields in parallel (see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"each field must be executed serially" sounds like the serial-ness is a property of the fields own execution (e.g. of its resolver and sub selection set), rather than it's contextual execution relative to its sibling fields. Minor tweak for clarity.
@@ -396,10 +396,9 @@ executionMode): | |||
### Field Collection | |||
|
|||
Before execution, each _selection set_ is converted to a _collected fields map_ | |||
by calling {CollectFields()} by collecting all fields with the same response |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merely deleted by calling {CollectFields()}
since the algorithms (including {CollectSubfields()}
too) are mentioned in next paragraph, and by ... by ...
read unpleasantly.
@@ -334,11 +334,11 @@ CollectSubscriptionFields(objectType, selectionSet, visitedFragments): | |||
- If {DoesFragmentTypeApply(objectType, fragmentType)} is {false}, continue | |||
with the next {selection} in {selectionSet}. | |||
- Let {fragmentSelectionSet} be the top-level selection set of {fragment}. | |||
- Let {fragmentCollectedFieldMap} be the result of calling | |||
- Let {fragmentCollectedFieldsMap} be the result of calling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+s
throughout to match existing collectedFieldsMap
term
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah thanks - that was my intent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beautiful - thanks for the careful read and spot check fixes
Follow up to:
ExecuteSelectionSet
withExecuteCollectedFields
#1039@leebyron noted:
I like the new edits, they're clear and achieve the goals of the PR! Here's some minor tweaks to improve the end result.
Recommendation: review on a commit-by-commit basis, each commit is self-contained.