Skip to content

docs(graphql): fix undefined names in README code samples and typos - #1533

Merged
vincenzopalazzo merged 1 commit into
zino-hofmann:mainfrom
toyeshhm:fix-doc-typos
Sep 19, 2026
Merged

vincenzopalazzo merged 1 commit into
zino-hofmann:mainfrom
toyeshhm:fix-doc-typos

Conversation

@toyeshhm

Copy link
Copy Markdown
Contributor

The packages/graphql README has two code samples that fail to compile when copied, plus a few spelling errors. This PR fixes them; no code changes.

Docs

  • Fixed the "Basic Usage" client setup sample: it checks websocketEndpoint != null but then passes websockeEndpoint to WebSocketLink(...), an undefined name.
  • Fixed the generated-code AddStar sample: VariablesMutationAddStar(starableId: ...) where the operation declares $starrableId.
  • Fixed the mis-cased WebsocketLink class name in the gql_link routing notes (the class is WebSocketLink).
  • Fixed a stray period in the setup sample's comment ("will. swallow").
  • Fixed spelling: retreived, cooresponding, indistiguishable, systm.

The "Basic Usage" setup sample declares `websocketEndpoint` but passes
`websockeEndpoint` to `WebSocketLink(...)`, and the generated-code mutation
sample passes `starableId:` where the operation declares `$starrableId`.
Both fail to compile when copied. Also fix the mis-cased `WebsocketLink`
class name in the links section, a stray period in the setup sample's
comment, and four spelling errors (retreived, cooresponding,
indistiguishable, systm).

@vincenzopalazzo vincenzopalazzo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thanks!

@vincenzopalazzo
vincenzopalazzo merged commit f6fa354 into zino-hofmann:main Sep 19, 2026
4 checks passed
@codecov

codecov Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.83%. Comparing base (f490f57) to head (4ebec65).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1533      +/-   ##
==========================================
- Coverage   65.93%   65.83%   -0.10%     
==========================================
  Files          43       43              
  Lines        2096     2096              
==========================================
- Hits         1382     1380       -2     
- Misses        714      716       +2     
Flag Coverage Δ
graphql 67.38% <ø> (ø)
graphql_flutter 65.83% <ø> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants