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:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user