Skip to main content

List Handbooks

List all handbooks for the authenticated user. Returns handbooks belonging to the authenticated user.

Query

query ListHandbooks($filter: ListHandbooksFilter) {
listHandbooks(filter: $filter) {
handbooks {
handbookId
handbookType
createdAt
updatedAt
companyName
industry
}
total
}
}

Parameters

ParameterTypeRequiredDescription
filterListHandbooksFilterNoFilters for pagination. All fields are optional.

ListHandbooksFilter Input

FieldTypeDescription
limitIntMaximum number of handbooks to return. Defaults to 50. Maximum is 100.
offsetIntNumber of handbooks to skip for pagination. Defaults to 0.

Response

{
"data": {
"listHandbooks": {
"handbooks": [
{
"handbookId": 123,
"handbookType": "comprehensive",
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-15T10:30:00Z",
"companyName": "Acme Corporation",
"industry": "PROFESSIONAL"
},
{
"handbookId": 124,
"handbookType": "basic",
"createdAt": "2025-01-02T00:00:00Z",
"updatedAt": null,
"companyName": "Tech Startup Inc",
"industry": "other"
}
],
"total": 25
}
}
}

Examples

Get All Handbooks (Default)

query {
listHandbooks {
handbooks {
handbookId
handbookType
createdAt
companyName
}
total
}
}

With Pagination

query {
listHandbooks(filter: { limit: 25, offset: 0 }) {
handbooks {
handbookId
handbookType
createdAt
companyName
industry
}
total
}
}

Variables

{
"filter": {
"limit": 25,
"offset": 0
}
}

Response Fields

HandbooksList

FieldTypeDescription
handbooks[HandbookListItem!]!Array of handbook metadata records (does not include content)
totalInt!Total number of handbooks matching the query (before pagination)

HandbookListItem

FieldTypeDescription
handbookIdInt!Unique identifier for the handbook
handbookTypeString!Type of handbook: "basic" or "comprehensive"
createdAtString!ISO 8601 timestamp when the handbook was created
updatedAtStringISO 8601 timestamp when the handbook was last updated
companyNameStringCompany name from the handbook data
industryStringIndustry type
subscriptionStatusSubscriptionStatusSubscription status of the handbook

Notes

  • Requires bearer token authentication
  • Maximum limit is 100. If exceeded, it will be capped at 100
  • Results are ordered by creation date (newest first)
  • The response does not include handbook content. Use getHandbook to retrieve full handbook with content
  • Only returns handbooks belonging to the authenticated user
  • For detailed information about response types and fields, see Types & Schema