From 91ee504bd7da9a1cfbb37cc95922a1b106a6008d Mon Sep 17 00:00:00 2001 From: Shinsina Date: Thu, 24 Mar 2022 08:36:56 -0500 Subject: [PATCH] Add requiresIndexed to block loader. --- packages/web-common/src/block-loaders/all-published-content.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/web-common/src/block-loaders/all-published-content.js b/packages/web-common/src/block-loaders/all-published-content.js index c521b2060..9521348c8 100644 --- a/packages/web-common/src/block-loaders/all-published-content.js +++ b/packages/web-common/src/block-loaders/all-published-content.js @@ -56,6 +56,8 @@ module.exports = async (apolloClient, { requiresImage, sectionBubbling, + requiresIndexed, + queryFragment, queryName, } = {}) => { @@ -74,6 +76,7 @@ module.exports = async (apolloClient, { since: date(since), beginning: { after: date(beginningAfter), before: date(beginningBefore) }, ending: { after: date(endingAfter), before: date(endingBefore) }, + requiresIndexed, ...(publishedAfter && { after: date(publishedAfter) }), }; if (field || order) input.sort = { field, order };