Represents a NebulaGraph vertex (node).
A vertex has a vid (vertex ID, either an integer or string depending on
the space's VID type) and a list of %NebulaGraphEx.Types.Tag{} structs,
each carrying a set of properties.
Fields
:vid— vertex ID; decoded tointeger()orbinary().:tags— list of%NebulaGraphEx.Types.Tag{}structs.
Example
%NebulaGraphEx.Types.Vertex{
vid: "player100",
tags: [
%NebulaGraphEx.Types.Tag{
name: "Player",
props: %{"name" => "Tim Duncan", "age" => 42}
}
]
}
Summary
Functions
Returns the property value for prop_name in the first tag named tag_name,
or nil if either the tag or the property is absent.
Returns the first tag matching name, or nil if not present.
Types
@type t() :: %NebulaGraphEx.Types.Vertex{ tags: [NebulaGraphEx.Types.Tag.t()], vid: integer() | String.t() }
Functions
Returns the property value for prop_name in the first tag named tag_name,
or nil if either the tag or the property is absent.
@spec tag(t(), String.t()) :: NebulaGraphEx.Types.Tag.t() | nil
Returns the first tag matching name, or nil if not present.
Example
Vertex.tag(vertex, "Player")
#=> %Tag{name: "Player", props: %{"name" => "Tim Duncan"}}