Skip to content

Commit

Permalink
fix(gatsby-plugin-page-creator): Use correct queryAll name (#27487)
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Oct 16, 2020
1 parent c76ab29 commit a70a66e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby-plugin-page-creator/src/gatsby-node.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import _ from "lodash"
import glob from "globby"
import systemPath from "path"
import { sync as existsSync } from "fs-exists-cached"
Expand Down Expand Up @@ -136,7 +137,7 @@ export function setFieldsOnGraphQLNodeType({
}: SetFieldsOnGraphQLNodeTypeArgs): object {
try {
const extensions = store.getState().program.extensions
const collectionQuery = `all${type.name}`
const collectionQuery = _.camelCase(`all ${type.name}`)
if (knownCollections.has(collectionQuery)) {
return {
gatsbyPath: {
Expand Down

0 comments on commit a70a66e

Please sign in to comment.