List accounts

accounts(input: ListAccountsInput!): AccountList!

Arguments

ArgumentTypeRequired
inputListAccountsInput!Yes

Input fields

input

ListAccountsInput

FieldTypeRequired
cursorStringNo
limitIntNo
slugStringNo

Response

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

FieldTypeDescription
data[Account!]!Accounts the caller belongs to, oldest first, with the caller role in each.
pageInfoAccountPagination!

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

Example

graphql
query Accounts($input: ListAccountsInput!) {
  accounts(input: $input) {
    data {
      id
      name
      slug
      createdAt
      updatedAt
    }
    pageInfo {
      first
      next
      prev
      self
    }
  }
}
json
{
  "input": {}
}