I'm trying to add my/custom/path/to the $path variable but have no idea on how to do this. Already looked at the documentation but couldn't find anything that mentions this.
export const postQuery = graphql`
query BlogPostByPath($path: String!) {
markdownRemark(frontmatter: { path: { eq: $path } }) {
html
frontmatter {
path
title
description
keywords
}
}
}
`;
markdownRemark? First time seeing such nested argument passing. Are you using Apollo as GraphQl client?gatsby-transformer-remarkso it might look different. I'm not sure what else I can provide to help you :/