Post

A post.

Implements

Connections

collections (CollectionConnection!)

Lookup collections which the Post is part of.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

comments (CommentConnection!)

Lookup comments on the Post.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

order CommentsOrder

Define order for the Comments.

The default value is NEWEST.

topics (TopicConnection!)

Look up topics that are associated with the object.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

votes (VoteConnection!)
Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

createdAfter DateTime

Select Votes which were created after the given date and time.

createdBefore DateTime

Select Votes which were created before the given date and time.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

Fields

commentsCount (Int!)

Number of comments made on the Post.

createdAt (DateTime!)

Identifies the date and time when the Post was created.

description (String)

Description of the Post in plain text.

featuredAt (DateTime)

Identifies the date and time when the Post was featured.

id (ID!)

ID of the Post.

isCollected (Boolean!)

Whether the viewer has added the Post to one of their collections.

isVoted (Boolean!)

Whether the Viewer has voted for the object or not.

makers ([User!]!)

Users who are marked as makers of the Post.

media ([Media!]!)

Media items for the Post.

name (String!)

Name of the Post.

productLinks ([ProductLink!]!)

Additional product links

reviewsCount (Int!)

Count of review for the Post

reviewsRating (Float!)

Aggregate review rating for the Post.

slug (String!)

URL friendly slug of the Post.

tagline (String!)

Tagline of the Post.

thumbnail (Media)

Thumbnail media object of the Post.

url (String!)

URL of the Post on Product Hunt.

user (User!)

User who created the Post.

userId (ID!)

ID of User who created the Post.

votesCount (Int!)

Number of votes that the object has currently.

website (String!)

URL that redirects to the Post's website.