Skip to content

Commit 56dda90

Browse files
fix: graphql docs on spreading collections (#1825)
1 parent 530ac7e commit 56dda90

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

content/collections/pages/graphql.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,15 @@ and `Entry_Pages_Home` types. These implementations would provide fields specifi
7575
entries {
7676
id
7777
title
78-
... on Entry_Pages_Page {
79-
subtitle
80-
content
81-
}
82-
... on Entry_Pages_Home {
83-
hero_intro
84-
hero_image
78+
data {
79+
... on Entry_Pages_Page {
80+
subtitle
81+
content
82+
}
83+
... on Entry_Pages_Home {
84+
hero_intro
85+
hero_image
86+
}
8587
}
8688
}
8789
}
@@ -840,13 +842,15 @@ You will need to query the implementations using fragments in order to get bluep
840842
entries {
841843
id
842844
title
843-
... on Entry_Blog_Post {
844-
intro
845-
content
846-
}
847-
... on Entry_Blog_ArtDirected_Post {
848-
hero_image
849-
content
845+
data {
846+
... on Entry_Blog_Post {
847+
intro
848+
content
849+
}
850+
... on Entry_Blog_ArtDirected_Post {
851+
hero_image
852+
content
853+
}
850854
}
851855
}
852856
}

0 commit comments

Comments
 (0)