Tag: gatsby
-
How can we fetch blog posts and pages from Shopify Headless in Gatsby with gatsby-source-shopify plugin?
0 I am planning to migrate my site from Shopify to Shopify Headless + Gatsby but I am having a problem with the plugin, gatsby-source-shopify. It can create nodes for products and product related data but not blog posts. Is there any way to get blog posts or do I have to create them manually…
-
How to connect to AuraDB from a Gatsby-based pages
0 I’m building a website with Gatsby. It will be fully static. I use a Neo4J base hosted (aka an AuraDB free instance) to store data needed for the website. I’m trying to get things working together but I end up with a 403 when trying to get some data from the DB. Beginning of…
-
How can I get data from a json via GraphQL and create dynamic pages in gatsby?
-2 its giving me error Cannot read properties of undefined (reading ‘edges’) when I deleted edges from const {compdata} = data.allJson.edges.node; its showing same error for node. What is right way to map this and I have to create dynamic pages using same json file.Please help me for this issue. src/data/data.json { "compdata": [{ "id":…
-
Gatsby, Prismic with GraphQl query aliases error
0 I tried to update Gatsby and plugins from v4 to v5. I started getting this error in my query: const query = graphql` query Ad { prismicHomepage { id type data { body { … on PrismicHomepageDataBodyCompareRatesCards { id slice_type items { bank { html text richText } checkingname { html text richText }…
-
ERROR #11321 PLUGIN “gatsby-source-strapi” gives error while running the sourceNodes. gatsby develop runs successfully but gatsby build fails
0 ERROR #11321 API.NODE.EXECUTION "gatsby-source-strapi" threw an error while running the sourceNodes lifecycle: Request failed with status code 404 AxiosError: Request failed with status code 404 settle.js:19 settle [FEtest]/[gatsby-source-strapi]/[axios]/lib/core/settle.js:19:12 http.js:570 IncomingMessage.handleStreamEnd [FEtest]/[gatsby-source-strapi]/[axios]/lib/adapters/http.js:570:11 node:events:526 IncomingMessage.emit node:events:526:35 readable:1359 endReadableNT node:internal/streams/readable:1359:12 task_queues:82 processTicksAndRejections node:internal/process/task_queues:82:21 error #11321 api.node.execution "gatsby-source-strapi" threw an error while running the sourcenodes lifecycle: request failed…
-
Gatsby filter with wordpress wpml langauge not working
0 I have a wordpress headless setup to work with gatsby static site genetator. The data is coming correclty when queried from wordpress console. { categories (where : {language: "fr"}){ nodes { id, databaseId, name, uri } } } Same data is not coming when queried from gatsby graphql query: { allWpCategory (filter : {language…
-
WordPress Gatsby get parent props
0 I’m a grapql newby and struggling to get the parent props from current page. In gatsby-node.js I create all wordpress pages with: createPage({ path: `${page.node.uri}`, component: PageTemplate, context: { id: page.node.id, title: page.node.title, parentId: page.node.parentId }, }) Then on the page I use following to get data from current page with: query($id: String!) {…
-
Gatsby Image data not coming through
0 I’m getting image data from WP passed into Gatsby. I want to use Gatsby Image to improve performance. Here’s my GraphQL query: But then when i console that data, I just get sourceUrl and altText. I’m trying to pass my image from line 11 into the GatsbyImage component on line 22, but it’s not…
-
strapi collection types in gatsby missing
0 I have created some single types and som collection types in strapi. In my gatsby project, in the the gatsby-config.js file, I have placed the names of the single types and the collection type. collectionTypes: [‘heronodes’], singleTypes: [‘message’, ‘intro’, ‘hero’, ‘footer’], I can see all the single types in the graphql playground in gatsby,…
-
(Gatsby) Displaying frontmatter data in MDX component
0 I’m trying to create a simple Byline component to use in my MDX posts that displays the site author with a href="mailto:[email protected]" and a time tag with the date the post is given in its frontmatter. I’ve tried following this Gatsby tutorial to learn how to query frontmatter through GraphQL in a component. I…