ProductionQu Query

listShiftDefinitions

Topics: Jobs

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

Returns

ShiftDefinitionConnection!

Arguments

first

IntOptional

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.

last

IntOptional

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.

after

StringOptional

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

before

StringOptional

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.

Exact field 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"])

Declared on Query. Access is checked by the platform for each operation.