We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c76ab29 commit a70a66eCopy full SHA for a70a66e
packages/gatsby-plugin-page-creator/src/gatsby-node.ts
@@ -1,3 +1,4 @@
1
+import _ from "lodash"
2
import glob from "globby"
3
import systemPath from "path"
4
import { sync as existsSync } from "fs-exists-cached"
@@ -136,7 +137,7 @@ export function setFieldsOnGraphQLNodeType({
136
137
}: SetFieldsOnGraphQLNodeTypeArgs): object {
138
try {
139
const extensions = store.getState().program.extensions
- const collectionQuery = `all${type.name}`
140
+ const collectionQuery = _.camelCase(`all ${type.name}`)
141
if (knownCollections.has(collectionQuery)) {
142
return {
143
gatsbyPath: {
0 commit comments