mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fetch a highlights labels
This commit is contained in:
parent
5fbe0f428b
commit
8e765246e3
1 changed files with 8 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue