Skip to content

Commit

Permalink
fix: add dataLoaderOptions to gatsby-source-graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
that1matt committed Aug 11, 2022
1 parent fe1d2e1 commit e8946bd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/gatsby-source-graphql/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ exports.pluginOptionsSchema = ({ Joi }) =>
createSchema: Joi.function(),
batch: Joi.boolean(),
transformSchema: Joi.function(),
dataLoaderOptions: Joi.object({
batch: Joi.boolean(),
maxBatchSize: Joi.number(),
batchScheduleFn: Joi.function(),
cache: Joi.boolean(),
cacheKeyFn: Joi.function(),
cacheMap: Joi.object({
get: Joi.function(),
set: Joi.function(),
delete: Joi.function(),
clear: Joi.function(),
}),
}),
}).or(`url`, `createLink`)

exports.createSchemaCustomization = async (
Expand Down

0 comments on commit e8946bd

Please sign in to comment.