diff --git a/services/graphql-server/src/graphql/resolvers/platform/content.js b/services/graphql-server/src/graphql/resolvers/platform/content.js index 72bf1beb5..a1ba3d0b6 100644 --- a/services/graphql-server/src/graphql/resolvers/platform/content.js +++ b/services/graphql-server/src/graphql/resolvers/platform/content.js @@ -904,6 +904,7 @@ module.exports = { withSite, customAttributes, updated, + requiresIndexed, } = input; // @deprecated Prefer includeContentTypes over contentTypes. @@ -951,6 +952,9 @@ module.exports = { if (includeLabels.length) { query.labels = { $in: includeLabels }; } + if (requiresIndexed) { + query.$and.push({ $or: [{ 'mutations.Website.noIndex': { $exists: false } }, { 'mutations.Website.noIndex': false }] }); + } const projection = connectionProjection(info); return basedb.paginate('platform.Content', {