You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to fix the formatting to see what was happening in your code, see the questions/comments:
constbatch=seraph.batch();newNode=batch.save({_pr: socket.projectId,_name: '<empty>'});// 1. What is "classNode"?// This should be a string of the label you wish to apply, not another node.batch.label(newNode,[classNode]);// 2. Where are the first and second parameters coming from?// This could be where the problem is, but it's difficult to tell without knowing what the "data" object is.batch.relate(data.source.id,data.relation._name,newNode);batch.commit((err,results)=>{if(err){console.log('Adding node failed:\n'+err);}else{// ...}});
The text was updated successfully, but these errors were encountered: