Visitar URL original
docs(learn): use async/await in JS examples by MisbahAnsar · Pull Request #2555 · graphql/graphql.github.io · GitHub
Skip to content

docs(learn): use async/await in JS examples - #2555

Open
MisbahAnsar wants to merge 1 commit into
graphql:sourcefrom
MisbahAnsar:docs/learn-async-await
Open

MisbahAnsar wants to merge 1 commit into
graphql:sourcefrom
MisbahAnsar:docs/learn-async-await

Conversation

@MisbahAnsar

Copy link
Copy Markdown

Closes #1821

Switches the promise-chain resolver examples in the Learn pages to async/await, and adjusts the surrounding text in the Asynchronous resolvers section so it still explains where the Promise comes from.

Files changed:

  • src/pages/learn/execution.mdx: resolveHuman (both copies) and resolveHumanStarships
  • src/pages/learn/mutations.mdx: createReview

The /graphql-js pages are untouched, as discussed in the issue.

@vercel

vercel Bot commented Oct 25, 2026

Copy link
Copy Markdown

@MisbahAnsar is attempting to deploy a commit to the The GraphQL Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: MisbahAnsar / name: Misbah Ansari (fe2a44e)

@MisbahAnsar
MisbahAnsar marked this pull request as ready for review October 25, 2026 14:23
@saihaj
saihaj requested a review from benjie October 28, 2026 16:58

This branch has not been deployed

No deployments
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.

Modernise JS examples in the documentation

1 participant