indradb 0.12.1

A graph database server
Documentation
1
2
3
4
5
6
7
8
9
10
local trans = transaction();
local outbound_id = trans:create_vertex("foo");
local inbound_id = trans:create_vertex("bar");
local key = EdgeKey.new(outbound_id, "baz", inbound_id);
trans:create_edge(key);
local e = trans:get_edges(EdgeQuery.edges({key}));
assert(#e == 1);
assert(e[1].key.outbound_id == outbound_id);
assert(e[1].key.type == "baz");
assert(e[1].key.inbound_id == inbound_id);