โ† API reference
Query / jobs

listShiftDefinitions

List the current tenant's shift definitions as a connection. Requires shiftDefinition:list permission.

Arguments

firstInt

Forward pagination: how many shift definitions to return after the after cursor. Defaults to 25, may not exceed 100, and cannot be combined with last.

lastInt

Backward pagination: how many shift definitions to return before the before cursor. Defaults to 25, may not exceed 100, and cannot be combined with first.

afterString

Forward pagination: return only definitions following this edge cursor in the requested sort order. Cannot be combined with before.

beforeString

Backward pagination: return only definitions preceding this edge cursor in the requested sort order. Cannot be combined with after.

Narrow the result by name and/or creation time. Omit to list every definition in the tenant.

Ordering terms; only the first term is applied, and both its field and direction are honoured. Defaults to createdAt descending (newest first) when omitted.

Returns ShiftDefinitionConnection!

Scalar fields at a glance

totalCountInt
โ†— View the complete ShiftDefinitionConnection type

Explore in a view

Production Floor
View exact SDL
"""
List the current tenant's shift definitions as a connection. Requires shiftDefinition:list permission.
"""
listShiftDefinitions(
  """
  Forward pagination: how many shift definitions to return after the after cursor. Defaults to 25, may not exceed 100, and cannot be combined with last.
  """
  first: Int
  """
  Backward pagination: how many shift definitions to return before the before cursor. Defaults to 25, may not exceed 100, and cannot be combined with first.
  """
  last: Int
  """
  Forward pagination: return only definitions following this edge cursor in the requested sort order. Cannot be combined with before.
  """
  after: String
  """
  Backward pagination: return only definitions preceding this edge cursor in the requested sort order. Cannot be combined with after.
  """
  before: String
  """
  Narrow the result by name and/or creation time. Omit to list every definition in the tenant.
  """
  filter: ShiftDefinitionFilterInput
  """
  Ordering terms; only the first term is applied, and both its field and direction are honoured. Defaults to createdAt descending (newest first) when omitted.
  """
  sort: [ShiftDefinitionSortInput!]
): ShiftDefinitionConnection! @topic(names: ["jobs"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.