Skip to main content

agrag.common.data_models.graph_record.UpsertResult

Bases: BaseModel

Outcome of a bulk upsert_nodes/upsert_relations call.

Attributes:

  • written (int) – How many records were written successfully.
  • failures (list[UpsertFailure]) – Records that failed, isolated from the rest of the call. Empty when every record wrote successfully.

failures​

failures: list[UpsertFailure] = Field(default_factory=list)

written​

written: int = 0