Skip to content

Commit a70a66e

Browse files
authoredOct 16, 2020
fix(gatsby-plugin-page-creator): Use correct queryAll name (#27487)
1 parent c76ab29 commit a70a66e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎packages/gatsby-plugin-page-creator/src/gatsby-node.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import _ from "lodash"
12
import glob from "globby"
23
import systemPath from "path"
34
import { sync as existsSync } from "fs-exists-cached"
@@ -136,7 +137,7 @@ export function setFieldsOnGraphQLNodeType({
136137
}: SetFieldsOnGraphQLNodeTypeArgs): object {
137138
try {
138139
const extensions = store.getState().program.extensions
139-
const collectionQuery = `all${type.name}`
140+
const collectionQuery = _.camelCase(`all ${type.name}`)
140141
if (knownCollections.has(collectionQuery)) {
141142
return {
142143
gatsbyPath: {

0 commit comments

Comments
 (0)
Please sign in to comment.