List project templates

projectTemplates(input: ProjectTemplatesInput): ProjectTemplatePage!

Arguments

ArgumentTypeRequired
inputProjectTemplatesInputNo

Input fields

input

ProjectTemplatesInput

FieldTypeRequiredDescription
searchStringNoSearch template names or slugs.
useCaseStringNoFilter by category, for example Store or Landing.
sortByTemplateSortByNoOptional sort field. Omit sorting to retain curated order.
sortOrderTemplateSortOrderNoDefaults to asc when sorting. On its own sorts by name.
excludeBlankBooleanNoExclude the blank template before pagination.
cursorStringNoCursor of the page to read, from pageInfo.endCursor of the previous page.
limitIntNoInteger page size from 1 to 100; defaults to 20.

Response

Returns ProjectTemplatePage!. Open the type for its fields and nested types.

FieldType
data[ProjectTemplate!]!
pageInfoPageInfo!

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

Example

graphql
query ProjectTemplates($input: ProjectTemplatesInput) {
  projectTemplates(input: $input) {
    data {
      id
      name
      slug
      createdAt
      updatedAt
    }
    pageInfo {
      hasNextPage
      endCursor
      hasPreviousPage
      startCursor
    }
  }
}
json
{}