Skip to content

Working with transactions #59

@StarpTech

Description

@StarpTech

Hi, it should be possible to get statements from the actions (insertNode..) to use your transaction api effectively.

e.g

//Insert node and get the statement
var statement = db.insertNode({
    name: 'Darth Vader',
    sex: 'male'
},function(err, node){
    if(err) throw err;

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

    // Output node id.
    console.log(node._id);
});
//Begin transaction
var id = db.beginTransaction(callback, statement);
db.commitTransaction(id, callback);

//...or similiar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions