jmcvetta/neoism

node.GetOrCreateNode doesn't set label to node

azr opened this issue · 1 comments

azr commented

Hi there,

I'm not sure if this is an issue or not, but I have to run :

    node, created, err := app.DB.GetOrCreateNode("Word", "Text", params)

    if created {
        node.AddLabel("Word")
    }

To make sure the node has a "Word" label.

Cheers !

That looks like a bug. Please submit a PR with a failing test case, and I will see if I can fix it.