Schema Documentation

posts

Description

Connection between the RootQuery type and the post type

Response

Returns a RootQueryToPostConnection

Arguments
NameDescription
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 - RootQueryToPostConnectionWhereArgs Arguments for filtering the connection

Example

Query
query posts(  $first: Int,$last: Int,$after: String,$before: String,$where: RootQueryToPostConnectionWhereArgs){  posts(    first: $first,    last: $last,    after: $after,    before: $before,    where: $where  ){    edges {      ...RootQueryToPostConnectionEdgeFragment    }nodes {      ...PostFragment    }pageInfo {      ...RootQueryToPostConnectionPageInfoFragment    }  }}
Variables
{"first":987,"last":123,"after":"xyz789","before":"abc123","where":RootQueryToPostConnectionWhereArgs}
Response
{"data":{"posts":{"edges":[RootQueryToPostConnectionEdge],"nodes":[Post],"pageInfo":RootQueryToPostConnectionPageInfo}}}