Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit ac7e2bb

Browse files
committed
Update standalone comment query for refactor
1 parent 65834e3 commit ac7e2bb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

api/wordpress/comments/queryCommentsByPostId.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ const queryCommentsByPostId = gql`
2121
where: {contentId: $id, order: $order, orderby: $orderby}
2222
) {
2323
${archivePageInfo}
24-
${commentsFields}
24+
edges {
25+
node {
26+
${commentsFields}
27+
}
28+
}
2529
}
2630
}
2731
`

0 commit comments

Comments
 (0)