Skip to content

graphql: gatsbyPath doesn't materialize nodes #37103

Closed
@nrandell

Description

@nrandell

Preliminary Checks

Description

In a query, using gatsby patch does not correctly expand the paths.

gatsbyPath(filePath: "/{Article.articleType__slug}/{Article.slug}")

I would expect to see a path such as /type1/article1/ but instead I get {Article.articleType__slug}/article1/

Reproduction Link

https://github.com/nrandell/gatsby-path-nested-bug

Steps to Reproduce

yarn install
yarn develop
http://localhost:8000/type1/article1

Expected Result

On the page I would expect to see

Got path as: /type1/article1/

Expect to see: /type1/article1/

Actual Result

On the page I would expect to see

Got path as: /{Article.articleType__slug}/article1/

Expect to see: /type1/article1/

Environment

System:
    OS: Windows 10 10.0.22621
    CPU: (16) x64 AMD Ryzen 7 PRO 4750G with Radeon Graphics
  Binaries:
    Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
  Languages:
    Python: 3.10.4
  Browsers:
    Edge: Spartan (44.22621.819.0), Chromium (107.0.1418.56), ChromiumDev (User home = 'C:\Users\nickr\AppData\Local\IISExpress'
IIS USER HOME configured)
  npmPackages:
    gatsby: ^5.0.0 => 5.1.0

Config Flags

No response

Metadata

Metadata

Assignees

Labels

status: confirmedIssue with steps to reproduce the bug that’s been verified by at least one reviewer.topic: DXDeveloper Experience (e.g. Fast Refresh, i18n, SSR, page creation, starters)topic: GraphQLRelated to Gatsby's GraphQL layertype: bugAn issue or pull request relating to a bug in Gatsby

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions