Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node.GetOrCreateNode doesn't set label to node #62

Open
azr opened this issue Dec 29, 2014 · 1 comment
Open

node.GetOrCreateNode doesn't set label to node #62

azr opened this issue Dec 29, 2014 · 1 comment
Labels

Comments

@azr
Copy link
Contributor

azr commented Dec 29, 2014

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 !

@jmcvetta
Copy link
Owner

jmcvetta commented Jan 6, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants