Skip to content

comments

Fetch comments collection

Arguments

entry_ids · [ID] · An array of entry IDs to grab comments for. Overrides entry_id if passed in
page_size · Int · If should paginate is true, the number of results to return on a page. Max 1000
after · Cursor · Cursor to fetch results after

Returns

[Comment!]

Example

query comments(
$entry_id: ID
$entry_ids: [ID]
$offset: Int
$page_size: Int
$should_paginate: Boolean
$after: Cursor
) {
comments(
entry_id: $entry_id
entry_ids: $entry_ids
offset: $offset
page_size: $page_size
should_paginate: $should_paginate
after: $after
) {
author
content
created_at
creator
cursor
entry_id
id
is_reaction
poster
user_id
}
}