stacker.news/fragments/items.js

36 lines
435 B
JavaScript
Raw Normal View History

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
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
}
}`