View Source Dagex.Operations.CreateEdge (dagex v3.0.1)

Represents a database operation to create a new edge between two nodes.

See Dagex.create_edge/2

Link to this section Summary

Link to this section Types

Specs

result() ::
  {:edge_created, {parent :: struct(), child :: struct()}}
  | {:error, reason :: atom()}

Specs

t() :: %Dagex.Operations.CreateEdge{
  child: struct(),
  child_id: String.t(),
  node_type: String.t(),
  parent: struct(),
  parent_id: String.t()
}