Remove unused fields from items query

This commit is contained in:
ekzyis 2024-09-19 02:45:13 +02:00
parent c80f0060c3
commit c184d18431
1 changed files with 9 additions and 60 deletions

View File

@ -118,42 +118,17 @@ func (c *Client) Item(id int) (*Item, error) {
item(id: $id) { item(id: $id) {
id id
parentId parentId
createdAt
deletedAt
title title
url url
text
sats
createdAt
deletedAt
ncomments
user { user {
id id
name name
} }
otsHash
position
sats
boost
bounty
bountyPaidTo
path
upvotes
meSats
meDontLikeSats
meBookmark
meSubscription
outlawed
freebie
ncomments
commentSats
lastCommentAt
maxBid
isJob
company
location
remote
subName
pollCost
status
uploadId
mine
position
} }
}`, }`,
Variables: map[string]interface{}{ Variables: map[string]interface{}{
@ -194,43 +169,17 @@ func (c *Client) Items(query *ItemsQuery) (*ItemsCursor, error) {
items { items {
id id
parentId parentId
createdAt
deletedAt
title title
url url
text text
sats
createdAt
deletedAt
ncomments
user { user {
id id
name name
} }
otsHash
position
sats
boost
bounty
bountyPaidTo
path
upvotes
meSats
meDontLikeSats
meBookmark
meSubscription
outlawed
freebie
ncomments
commentSats
lastCommentAt
maxBid
isJob
company
location
remote
subName
pollCost
status
uploadId
mine
position
}, },
} }
}`, }`,