36 lines
435 B
JavaScript
36 lines
435 B
JavaScript
import { gql } from '@apollo/client'
|
|
|
|
export const ITEM_FIELDS = gql`
|
|
fragment ItemFields on Item {
|
|
id
|
|
parentId
|
|
createdAt
|
|
title
|
|
url
|
|
user {
|
|
name
|
|
}
|
|
sats
|
|
boost
|
|
meSats
|
|
ncomments
|
|
}`
|
|
|
|
export const ITEMS_FEED = gql`
|
|
${ITEM_FIELDS}
|
|
|
|
{
|
|
items {
|
|
...ItemFields
|
|
}
|
|
}`
|
|
|
|
export const ITEMS_RECENT = gql`
|
|
${ITEM_FIELDS}
|
|
|
|
{
|
|
items: recent {
|
|
...ItemFields
|
|
}
|
|
}`
|