summaryrefslogtreecommitdiffstats
path: root/src/services/graphql/comments.query.ts
blob: ef93e894336c0f58bb6108ee6c4c18a2e6c0eda0 (plain)
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
    }
  }
}`;