0

I have a Gatsby app with the following dependencies:

"gatsby": "^2.15.14",
"gatsby-awesome-pagination": "^0.3.3",
"gatsby-plugin-google-analytics": "^2.1.31",
"gatsby-plugin-intl": "^0.3.2",
"gatsby-plugin-lodash": "^3.1.7",
"gatsby-plugin-netlify": "^2.1.12",
"gatsby-plugin-purgecss": "^4.0.1",
"gatsby-plugin-react-helmet": "^3.1.7",
"gatsby-plugin-sass": "^2.1.14",
"gatsby-plugin-sharp": "^2.2.21",
"gatsby-remark-images": "^3.1.21",
"gatsby-source-filesystem": "^2.1.22",
"gatsby-source-wordpress": "^3.1.48",
"gatsby-transformer-remark": "^2.6.22",
"gatsby-transformer-sharp": "^2.2.14"

The app fetch data from Wordpress using WP GraphQL plugin but the thing is that after updating Wordpress plugins the graphql querying API has been changed as the frontend app throws the following error when I am trying to query for allWordpressPage.

There was an error in your GraphQL query:

Cannot query field "allWordpressPage" on type "Query". Did you mean "allSitePage"?

File: gatsby-node.js:13:10

Cannot query field "allWordpressPage" on type "Query". Did you mean "allSitePage"?

GraphQL request:3:7 2 | { 3 | allWordpressPage { | ^ 4 | edges {

Is there a way to configure new version of WP GraphQL wordpress plugin to make it compatible with Gatsby v2 and gatsby-source-wordpress 3?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
lukbrt
  • 308
  • 3
  • 8

0 Answers0