1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/** * Query the comments data by post id. */ export const commentsQuery = `query CommentsByPostId($contentId: ID!) { comments(where: {contentId: $contentId, order: ASC, orderby: COMMENT_DATE}) { nodes { approved author { node { gravatarUrl name url } } content databaseId date parentDatabaseId } } }`;