2021-04-17 18:15:18 +00:00
|
|
|
import { gql } from '@apollo/client'
|
|
|
|
|
|
|
|
export const COMMENT_FIELDS = gql`
|
|
|
|
fragment CommentFields on Item {
|
|
|
|
id
|
|
|
|
parentId
|
|
|
|
createdAt
|
|
|
|
text
|
|
|
|
user {
|
|
|
|
name
|
|
|
|
}
|
|
|
|
sats
|
2021-04-27 21:30:58 +00:00
|
|
|
boost
|
2021-04-26 21:55:15 +00:00
|
|
|
meSats
|
2021-04-17 18:15:18 +00:00
|
|
|
ncomments
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
|
|
|
export const COMMENTS = gql`
|
|
|
|
${COMMENT_FIELDS}
|
|
|
|
|
|
|
|
fragment CommentsRecursive on Item {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
2021-05-05 18:13:14 +00:00
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
comments {
|
|
|
|
...CommentFields
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-04-17 18:15:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`
|