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

No example for: insertNode Now supports labels. #68

Open
flashsnake-so opened this issue May 17, 2016 · 4 comments
Open

No example for: insertNode Now supports labels. #68

flashsnake-so opened this issue May 17, 2016 · 4 comments

Comments

@flashsnake-so
Copy link

Can you please update the README with example on how to use this?

Thanks.

@az-ericso
Copy link

Please close this ticket.

@robtg4
Copy link

robtg4 commented Aug 18, 2016

there still is No example for: insertNode, using labels

@hthetiot
Copy link

+1

@hthetiot
Copy link

hthetiot commented May 25, 2018

This works for me second argument if not callback is array of labels

db.insertNode({
    name: 'Darth Vader',
    sex: 'male'
}, ['Character'], function(err, node){
    if(err) {
        throw err;
    } else {

        // Output node properties.
        console.log(node.data);

        // Output node id.
        console.log(node._id);
    }
});

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

No branches or pull requests

4 participants