diff --git a/benchmarks/source-wordpress/scripts/updater.js b/benchmarks/source-wordpress/scripts/updater.js index 20767864cf255..653d4f469435f 100644 --- a/benchmarks/source-wordpress/scripts/updater.js +++ b/benchmarks/source-wordpress/scripts/updater.js @@ -1,4 +1,4 @@ -const fetchGraphql = require(`gatsby-source-wordpress-experimental/utils/fetch-graphql`) +const fetchGraphql = require(`gatsby-source-wordpress-experimental/dist/utils/fetch-graphql`) .default const faker = require(`faker`) diff --git a/docs/docs/file-system-route-api.md b/docs/docs/file-system-route-api.md index c4db2354652ca..0bd938ec5b169 100644 --- a/docs/docs/file-system-route-api.md +++ b/docs/docs/file-system-route-api.md @@ -125,14 +125,14 @@ export default function Component(props) { // to connect to this GraphQL query. export const query = graphql` - query ($id: String) { + query($id: String) { product(id: { eq: $id }) { fields { sku } } } -} +` ``` If you need to customize the query used for collecting the nodes (e.g. filtering out any product of type "Food"), you should use the [`createPages`](/docs/node-apis#createPages) API instead as File System Route API doesn't support this at the moment. @@ -170,7 +170,8 @@ export default function HomePage(props) {