only query for deleteScheduledAt when needed

This commit is contained in:
keyan 2023-11-20 15:38:49 -06:00
parent a12e969bd1
commit 58a9d03e28
3 changed files with 1 additions and 2 deletions

View File

@ -99,6 +99,7 @@ export default forwardRef(function Reply ({ item, onSuccess, replyOpen, children
mutation upsertComment($text: String!, $parentId: ID!, $hash: String, $hmac: String) {
upsertComment(text: $text, parentId: $parentId, hash: $hash, hmac: $hmac) {
...CommentFields
deleteScheduledAt
comments {
...CommentsRecursive
}

View File

@ -6,7 +6,6 @@ export const COMMENT_FIELDS = gql`
parentId
createdAt
deletedAt
deleteScheduledAt
text
user {
id

View File

@ -55,7 +55,6 @@ export const ITEM_FULL_FIELDS = gql`
fragment ItemFullFields on Item {
...ItemFields
text
deleteScheduledAt
root {
id
title