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

chore(gatsby-source-wordpress): Update querying-data tutorial #29353

Merged
merged 1 commit into from
Feb 8, 2021

Conversation

louis-morgan
Copy link
Contributor

Description

When following these steps I ran into errors as const { allWpPost } = result.data was being ran before the graphql promise had finished, await was not being used. Adding await fixed said errors.

Documentation

I have added await before the graphql function in 2 snippets

Related Issues

When following these steps I ran into errors as `const { allWpPost } = result.data` was being ran before the graphql promise had finished, `await` was not being used. Adding `await` fixed said errors.
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Feb 5, 2021
Copy link
Contributor

@LekoArts LekoArts left a comment

Choose a reason for hiding this comment

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

Thanks! 👍

@LekoArts LekoArts added topic: source-wordpress Related to Gatsby's integration with WordPress type: documentation An issue or pull request for improving or updating Gatsby's documentation and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Feb 8, 2021
@LekoArts LekoArts changed the title Update querying-data.md snippets chore(gatsby-source-wordpress): Update querying-data tutorial Feb 8, 2021
@LekoArts LekoArts merged commit 5569428 into gatsbyjs:master Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: source-wordpress Related to Gatsby's integration with WordPress type: documentation An issue or pull request for improving or updating Gatsby's documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants