From c184d18431a35cbdf876ce374327198685b5fdfb Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 19 Sep 2024 02:45:13 +0200 Subject: [PATCH] Remove unused fields from items query --- items.go | 69 ++++++++------------------------------------------------ 1 file changed, 9 insertions(+), 60 deletions(-) diff --git a/items.go b/items.go index 181eafc..0f4dc8c 100644 --- a/items.go +++ b/items.go @@ -118,42 +118,17 @@ func (c *Client) Item(id int) (*Item, error) { item(id: $id) { id parentId - createdAt - deletedAt title url + text + sats + createdAt + deletedAt + ncomments user { id 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{}{ @@ -194,43 +169,17 @@ func (c *Client) Items(query *ItemsQuery) (*ItemsCursor, error) { items { id parentId - createdAt - deletedAt title url text + sats + createdAt + deletedAt + ncomments user { id 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 }, } }`,