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
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.

Returns

CommentPaginationConnection

Example

query comments(
$entry_id: ID
$entry_ids: [ID]
$after: String
$before: String
$first: Int
$last: Int
) {
comments(
entry_id: $entry_id
entry_ids: $entry_ids
after: $after
before: $before
first: $first
last: $last
) {
edges
nodes
page_info
total_count
}
}