Prometheus Entity Management API
    Preparing search index...
    • Perform writes through your API while keeping the entity graph authoritative: optional optimistic patchEntity, commit via upsertEntity, rollback on failure. Use when useEntity/useEntityList describe reads and you need a consistent mutation story without a second client cache.

      Type Parameters

      • TInput
      • TRaw
      • TEntity extends object

      Parameters

      Returns UseMutationResult<TInput, TRaw>

      const { mutate, state } = useEntityMutation({
      type: "Task",
      mutate: (input) => api.updateTask(input.id, input.patch),
      normalize: (raw) => ({ id: raw.id, data: raw }),
      });