aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql/comments.query.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/graphql/comments.query.ts')
-rw-r--r--src/services/graphql/comments.query.ts32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/services/graphql/comments.query.ts b/src/services/graphql/comments.query.ts
deleted file mode 100644
index 5110db3..0000000
--- a/src/services/graphql/comments.query.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Query the comments data by post id.
- */
-export const commentsQuery = `query CommentsByPostId($contentId: ID!, $first: Int = 10, $after: String = "") {
- comments(
- where: {contentId: $contentId}
- first: $first
- after: $after
- ) {
- edges {
- cursor
- node {
- approved
- author {
- node {
- gravatarUrl
- name
- url
- }
- }
- content
- databaseId
- date
- parentDatabaseId
- }
- }
- pageInfo {
- hasNextPage
- endCursor
- }
- }
-}`;