Skip to content
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

Update fragment's definition in Learn-Queries.md #1586

Open
wants to merge 2 commits into
base: source
Choose a base branch
from

Conversation

inlineblock
Copy link

Updating the wording on how fragment should be used to nudge people towards a more scalable approach of using fragments to define data requirements.

Description

Even though the spec allows fragments to be used however people see fit, the document should nudge people towards a better usage pattern that scales well. In this case, attempt to describe them as composable pieces of data requirements used by UI or utility code. I hope this isn't controversial.

Changing the wording on the description of fragments to nudge people towards a more clear usage, like what Relay.dev does.
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 13, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@gatsby-cloud
Copy link

gatsby-cloud bot commented Oct 13, 2023

✅ graphql.github.io-source deploy preview ready

Copy link
Member

@benjie benjie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a great improvement to me! My one comment is the text describes a comparison page rendering two characters side by side, so it’s the “character” component that would have the fragment I think. Maybe renaming the fragment would make sense but I’ve not looked at the rest of the document; for now I suggest a tiny tweak to your edits.

src/content/learn/Learn-Queries.md Outdated Show resolved Hide resolved
Updating the comment to be correct and clear.

Co-authored-by: Benjie <benjie@jemjie.com>
@inlineblock
Copy link
Author

@benjie thank you for the review! I can do a follow PR to rename the fragment across the document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants