@cobuildlab/8base-chat
Version:
Chat component that uses 8base
32 lines (26 loc) • 462 B
text/typescript
import gql from 'graphql-tag';
// -- FRAGMENTS
export const IMAGE_FRAGMENT = gql`
fragment Image on File {
id
downloadUrl
}
`;
export const ATTACHMENT_FRAGMENT = gql`
fragment Attachment on File {
id
createdAt
fileId
downloadUrl
filename
previewUrl
}
`;
// -- MUTATIONS
export const FILE_DELETE_MUTATION = gql`
mutation FileDelete($data: FileDeleteInput!) {
fileDelete(data: $data) {
success
}
}
`;