Wrote merge nodes test and neo4j testing infrastructure.

Added entity formatting functionality.
Renamed the EventSubgraph to Subgraph because it is generic.
This commit is contained in:
jay
2026-11-26 11:59:31 -05:00
parent 54f3f81add
commit ffe11f9c36
8 changed files with 600 additions and 39 deletions
+4 -4
View File
@@ -26,21 +26,21 @@ func NewSimpleMatchKeys() *SimpleMatchKeys {
// ----------------------------------------------------------------------------
func NewUserNode(pubkey string) *Node {
return NewNode("User", Properties{"pubkey": pubkey})
return NewNode([]string{"User"}, Properties{"pubkey": pubkey})
}
func NewEventNode(id string) *Node {
return NewNode("Event", Properties{"id": id})
return NewNode([]string{"Event"}, Properties{"id": id})
}
func NewTagNode(name string, value string) *Node {
return NewNode("Tag", Properties{
return NewNode([]string{"Tag"}, Properties{
"name": name,
"value": value})
}
func NewReplacementKeyNode(pubkey string, kind int) *Node {
return NewNode("ReplacementKey", Properties{
return NewNode([]string{"ReplacementKey"}, Properties{
"pubkey": pubkey,
"kind": kind,
})