Skip to content

Commit

Permalink
refactor: 💡 updated allmarkdownremark to allmdx for search
Browse files Browse the repository at this point in the history
  • Loading branch information
benhalverson committed Nov 4, 2021
1 parent e1786be commit 5bfe56f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ module.exports = {
engineOptions: 'speed',
query: `
{
allMarkdownRemark {
allMdx {
edges {
node {
fields {
slug
}
id
rawMarkdownBody
rawBody
frontmatter {
title
description
Expand All @@ -164,11 +164,11 @@ module.exports = {
if (error) {
throw error;
}
return data.allMarkdownRemark.edges.map(node => {
return data.allMdx.edges.map(node => {
return {
id: node.node.id,
title: node.node.frontmatter.title,
body: node.node.rawMarkdownBody,
body: node.node.rawBody,
description: node.node.frontmatter.description,
slug: node.node.fields.slug,
};
Expand Down

0 comments on commit 5bfe56f

Please sign in to comment.