Files
speckle-server/packages/frontend-2/lib/viewer/graphql/fragments.ts
T
Kristaps Fabians Geikins b6c21fd506 feat: comment read/write auth policies in BE & FE (#4368)
* webhooks perm minor fix

* tryna get fileimport service to work

* new comment policies - shared

* BE done?

* checks implemented in FE

* lint fix

* tests fix

* readme fix
2025-04-10 15:14:34 +03:00

27 lines
534 B
TypeScript

import { graphql } from '~~/lib/common/generated/gql'
export const viewerCommentThreadFragment = graphql(`
fragment ViewerCommentThread on Comment {
...ViewerCommentsListItem
...ViewerCommentBubblesData
...ViewerCommentsReplyItem
...ViewerCommentThreadData
}
`)
export const viewerReplyFragment = graphql(`
fragment ViewerCommentsReplyItem on Comment {
id
archived
rawText
text {
doc
}
author {
...LimitedUserAvatar
}
createdAt
...ThreadCommentAttachment
}
`)