var someId = 1;
var userJson = {some:"user"};
var txn = db.batch();
var user = txn.save(userJson);
user.label("User");
txn.relate(user,'has',someId);
txn.commit(function(){})
this also works fine:
var someId = 1;
var userJson = {some:"user",id:2}; // Existing id in the database
var txn = db.batch();
var user = txn.save(userJson);
txn.commit(function(){})
but this doesn't work:
var someId = 1;
var userJson = {some:"user",id:2};
var txn = db.batch();
var user = txn.save(userJson);
user.label("User");
txn.relate(user,'has',someId);
txn.commit(function(){})
Error is following: Illegal character in path at index 2: ./{2}/labels
This works fine:
this also works fine:
but this doesn't work:
Error is following: Illegal character in path at index 2: ./{2}/labels