List projects

projects(input: ListProjectsInput): ProjectsConnection

Arguments

ArgumentTypeRequired
inputListProjectsInputNo

Input fields

input

ListProjectsInput

FieldTypeRequiredDescription
limitIntNoPage size from 1 to 100. Omitting it retains the unbounded legacy list.
cursorStringNoThe previous response's pageInfo.endCursor.
filterFilterParamsNoLabel filters are combined with AND.
sortByProjectSortByNoSort field: updated_at (the default), created_at, name or slug. Default: "updated_at".
sortOrderProjectSortOrderNoSort direction. Defaults to desc. Default: "desc".

Response

Returns ProjectsConnection. Open the type for its fields and nested types.

FieldTypeDescription
data[Project!]!Projects accessible to the caller.
pageInfoPageInfo!Forward continuation. hasNextPage is true only when another matching record exists; use endCursor for the next page.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

query.graphql
query Projects($input: ListProjectsInput) {  projects(input: $input) {    data {      id      name      slug      createdAt      updatedAt    }    pageInfo {      hasNextPage      endCursor      hasPreviousPage      startCursor    }  }}
variables.json
{}