Skip to content

Commit 9e61200

Browse files
authored
fix(contentful): rich text linked asset filter (#38716)
1 parent 27cb57c commit 9e61200

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/gatsby-source-contentful/src/create-schema-customization.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -579,11 +579,13 @@ export const createSchemaCustomization: GatsbyNode["createSchemaCustomization"]
579579

580580
const res = await context.nodeModel.findAll({
581581
query: {
582-
sys: {
583-
id: {
584-
in: links,
582+
filter: {
583+
sys: {
584+
id: {
585+
in: links,
586+
},
587+
spaceId: { eq: node.sys.spaceId },
585588
},
586-
spaceId: { eq: node.sys.spaceId },
587589
},
588590
},
589591
type: `Contentful${entityType}`,

0 commit comments

Comments
 (0)