113 lines
3.4 KiB
JavaScript
113 lines
3.4 KiB
JavaScript
import { gql } from '@apollo/client'
|
|
|
|
export const COMMENT_FIELDS = gql`
|
|
fragment CommentFields on Item {
|
|
id
|
|
parentId
|
|
createdAt
|
|
text
|
|
user {
|
|
name
|
|
}
|
|
sats
|
|
boost
|
|
meSats
|
|
ncomments
|
|
}
|
|
`
|
|
|
|
export const MORE_FLAT_COMMENTS = gql`
|
|
${COMMENT_FIELDS}
|
|
|
|
query MoreFlatComments($cursor: String, $userId: ID) {
|
|
moreFlatComments(cursor: $cursor, userId: $userId) {
|
|
cursor
|
|
comments {
|
|
...CommentFields
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|
|
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
|
|
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}`
|