2021-04-22 22:14:32 +00:00
|
|
|
import { gql } from '@apollo/client'
|
|
|
|
|
|
|
|
export const ITEM_FIELDS = gql`
|
|
|
|
fragment ItemFields on Item {
|
|
|
|
id
|
|
|
|
parentId
|
|
|
|
createdAt
|
|
|
|
title
|
|
|
|
url
|
|
|
|
user {
|
|
|
|
name
|
|
|
|
}
|
|
|
|
sats
|
2021-04-27 21:30:58 +00:00
|
|
|
boost
|
2021-04-26 21:55:15 +00:00
|
|
|
meSats
|
2021-04-22 22:14:32 +00:00
|
|
|
ncomments
|
|
|
|
}`
|
|
|
|
|
|
|
|
export const ITEMS_FEED = gql`
|
|
|
|
${ITEM_FIELDS}
|
|
|
|
|
|
|
|
{
|
|
|
|
items {
|
|
|
|
...ItemFields
|
|
|
|
}
|
|
|
|
}`
|
2021-04-24 21:05:07 +00:00
|
|
|
|
|
|
|
export const ITEMS_RECENT = gql`
|
|
|
|
${ITEM_FIELDS}
|
|
|
|
|
|
|
|
{
|
|
|
|
items: recent {
|
|
|
|
...ItemFields
|
|
|
|
}
|
|
|
|
}`
|