WeaviateEx.Batch.DeleteResult.DeletedObject (WeaviateEx v0.7.4)

View Source

Represents a single object from a batch delete operation.

Summary

Functions

Check if this was a dry run (object not actually deleted).

Check if the object deletion failed.

Parse a deleted object from the API response.

Check if the object was successfully deleted.

Types

status()

@type status() :: :success | :failed | :dry_run

t()

@type t() :: %WeaviateEx.Batch.DeleteResult.DeletedObject{
  errors: [map()] | nil,
  status: status(),
  uuid: String.t()
}

Functions

dry_run?(deleted_object)

@spec dry_run?(t()) :: boolean()

Check if this was a dry run (object not actually deleted).

failed?(deleted_object)

@spec failed?(t()) :: boolean()

Check if the object deletion failed.

from_api(map)

@spec from_api(map()) :: t()

Parse a deleted object from the API response.

success?(deleted_object)

@spec success?(t()) :: boolean()

Check if the object was successfully deleted.