Skip to content

Commit ec1fc4f

Browse files
committed
fix(node): add childOf to type Route to support gatsby v3
1 parent 370f5ff commit ec1fc4f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/gatsby/source-nodes.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ export default function ({ actions, schema }) {
6161
}
6262
},
6363
extensions: {
64-
infer: false
64+
infer: false,
65+
childOf: {
66+
types: [types.page],
67+
many: true
68+
}
6569
},
6670
interfaces: [`Node`]
6771
})

0 commit comments

Comments
 (0)