Fetch a highlights labels

This commit is contained in:
Jackson Harper 2022-12-02 13:21:13 +08:00
parent 5fbe0f428b
commit 8e765246e3

View file

@ -1,4 +1,5 @@
import { gql } from 'graphql-request'
import { Label, labelFragment } from './labelFragment'
export const highlightFragment = gql`
fragment HighlightFields on Highlight {
@ -12,6 +13,12 @@ export const highlightFragment = gql`
createdByMe
updatedAt
sharedAt
labels {
id
name
color
createdAt
}
}
`
@ -26,6 +33,7 @@ export type Highlight = {
createdByMe: boolean
updatedAt: string
sharedAt: string
labels?: Label[]
}
export type User = {