Zep.Graph.Node (Zep v1.0.0)

Copy Markdown View Source

Operations on individual graph entity nodes.

Summary

Functions

Fetches a single node by uuid.

Lists nodes for a user's or graph's graph, paginated.

Returns the edges directly connected to a node.

Functions

get(client_or_opts, uuid)

@spec get(Zep.Client.t() | keyword(), String.t()) ::
  {:ok, Zep.Schemas.Node.t()} | {:error, term()}

Fetches a single node by uuid.

get_by_user_or_graph(client_or_opts, opts \\ [])

@spec get_by_user_or_graph(
  Zep.Client.t() | keyword(),
  keyword()
) :: {:ok, [Zep.Schemas.Node.t()]} | {:error, term()}

Lists nodes for a user's or graph's graph, paginated.

get_edges(client_or_opts, uuid)

@spec get_edges(Zep.Client.t() | keyword(), String.t()) ::
  {:ok, [Zep.Schemas.Edge.t()]} | {:error, term()}

Returns the edges directly connected to a node.