Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

2 participants