mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-12 22:09:07 +02:00
init some functionaliies
This commit is contained in:
1
apps/db-adapter/internal/memgraph/admin.go
Normal file
1
apps/db-adapter/internal/memgraph/admin.go
Normal file
@@ -0,0 +1 @@
|
||||
package memgraph
|
@@ -1,4 +1,4 @@
|
||||
MATCH (n:Person)-[p:Parent*1..]->(family:Person)
|
||||
WHERE id(n) = $id
|
||||
OPTIONAL MATCH (family)-[c:Child*1..]->(children:Person)
|
||||
RETURN family, p, children, c, n
|
||||
OPTIONAL MATCH (family)-[c:Child*1..4]->(children:Person)
|
||||
RETURN collect(family) + collect(children) + collect(n), collect(c) + collect(p)
|
||||
|
1
apps/db-adapter/internal/memgraph/recipe.go
Normal file
1
apps/db-adapter/internal/memgraph/recipe.go
Normal file
@@ -0,0 +1 @@
|
||||
package memgraph
|
Reference in New Issue
Block a user