Skip to content

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

Merged
merged 8 commits into from
Jul 2, 2025

Conversation

benjie
Copy link
Member

@benjie benjie commented Jul 2, 2025

Follow up to:

@leebyron noted:

@benjie I made some substantial editorial changes here, especially to one of the term names. Please review!

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.

@benjie benjie requested a review from leebyron July 2, 2025 12:47
@benjie benjie added 🚀 Next Stage? This RFC believes it is ready for the next stage ✏️ Editorial PR is non-normative or does not influence implementation labels Jul 2, 2025
Copy link

netlify bot commented Jul 2, 2025

Deploy Preview for graphql-spec-draft ready!

Name Link
🔨 Latest commit eb62229
🔍 Latest deploy log https://app.netlify.com/projects/graphql-spec-draft/deploys/68652a73b1ed1c0007ad2bcd
😎 Deploy Preview https://deploy-preview-1175--graphql-spec-draft.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment on lines +778 to +779
Valid operations must supply a _selection set_ for every field whose return type
is an object type, so this operation is not valid:
Copy link
Member Author

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.

Comment on lines 586 to +587
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.
Copy link
Member Author

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.

Comment on lines +372 to +373
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
Copy link
Member Author

@benjie benjie Jul 2, 2025

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
Copy link
Member Author

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
Copy link
Member Author

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

Copy link
Collaborator

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

Copy link
Collaborator

@leebyron leebyron left a 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

@leebyron leebyron merged commit 9939469 into main Jul 2, 2025
9 checks passed
@leebyron leebyron deleted the execute-collected-fields-editorial branch July 2, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✏️ Editorial PR is non-normative or does not influence implementation 🚀 Next Stage? This RFC believes it is ready for the next stage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants