Schema Documentation
comments
Description
Connection between the RootQuery type and the Comment type
Response
Returns a RootQueryToCommentConnection
Arguments
Name | Description |
---|---|
first - Int | The number of items to return after the referenced "after" cursor |
last - Int | The number of items to return before the referenced "before" cursor |
after - String | Cursor used along with the "first" argument to reference where in the dataset to get data |
before - String | Cursor used along with the "last" argument to reference where in the dataset to get data |
where - RootQueryToCommentConnectionWhereArgs | Arguments for filtering the connection |
Example
Query
query comments( $first: Int,$last: Int,$after: String,$before: String,$where: RootQueryToCommentConnectionWhereArgs){ comments( first: $first, last: $last, after: $after, before: $before, where: $where ){ edges { ...RootQueryToCommentConnectionEdgeFragment }nodes { ...CommentFragment }pageInfo { ...RootQueryToCommentConnectionPageInfoFragment } }}
Variables
{"first":123,"last":123,"after":"abc123","before":"abc123","where":RootQueryToCommentConnectionWhereArgs}
Response
{"data":{"comments":{"edges":[RootQueryToCommentConnectionEdge],"nodes":[Comment],"pageInfo":RootQueryToCommentConnectionPageInfo}}}