UpdateInput type

Input type for updating existing entities.

All fields are optional. Relationship fields accept full object or primary-key-only. @many relationship arrays are allowed but ignored at runtime.

Example

// Update with primary-key-only for relationship
const input: UpdateInput<Todo> = {
  title: 'Updated Title',
  category: { id: 'new-cat-id' },
};
type UpdateInput<T> = Partial<MutationInput<T>>