← API reference
CANONICAL TYPE REFERENCE

UpsertCapabilityPayload

Result of a capability create/update/upsert: either the persisted capability or the validation errors that prevented the write.

The capability as persisted. Null when validation failed — see errors.

Field-level validation errors, e.g. path "code" with "code already exists in this tenant". Empty on success; when non-empty nothing was written.

View exact SDL
"""
Result of a capability create/update/upsert: either the persisted capability or the validation errors that prevented the write.
"""
type UpsertCapabilityPayload {
  """The capability as persisted. Null when validation failed — see errors."""
  capability: CapabilityState
  """
  Field-level validation errors, e.g. path "code" with "code already exists in this tenant". Empty on success; when non-empty nothing was written.
  """
  errors: [FieldError!]!
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.