Schema Documentation

contentTypes

Description

Connection between the RootQuery type and the ContentType type

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

Example

Query
query contentTypes(
  $first: Int,$last: Int,$after: String,$before: String
){
  contentTypes(
    first: $first,
    last: $last,
    after: $after,
    before: $before
  ){
    edges {
      ...RootQueryToContentTypeConnectionEdgeFragment
    }nodes {
      ...ContentTypeFragment
    }pageInfo {
      ...WPPageInfoFragment
    }
  }
}
Variables
{"first":123,"last":123,"after":"xyz789","before":"xyz789"}
Response
{"data":{"contentTypes":{"edges":[RootQueryToContentTypeConnectionEdge],"nodes":[ContentType],"pageInfo":WPPageInfo}}}