Error is : Unhandled rejection OrientDB.RequestError: Lexical error at line 1, column 35. Encountered: "\\" (92), after : "
--when I call it from node.js
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
// vkString - is json object
var db = orient.getGraph();
var vkQuery = "CREATE VERTEX post CONTENT { thumbnail:'" + vkString.thumbnail +"',comments:'"+ vkString.comments + "',origin:'"+vkString.origin +"',";
vkQuery = vkQuery + "userFullName : '"+ vkString.userFullName +"',title: '"+ vkString.title +"',userId:'"+ vkString.userId +"',";
vkQuery = vkQuery + "userPhotoUrl:'"+ vkString.userPhotoUrl +"',_id:'"+vkString._id+"',desc: '"+vkString.desc +"'}";
var vkInsert = db.command("sql",vkQuery);
Hi Abhijit,Do you have a test case to reproduce the problem?ThanksLuigi
2016-08-17 6:00 GMT+02:00 Abhijit Shivathare <abhijit.s...@anzu.org>:
Error is : Unhandled rejection OrientDB.RequestError: Lexical error at line 1, column 35. Encountered: "\\" (92), after : "when I call it from node.js
--
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.
var vkQuery = "CREATE VERTEX post CONTENT { 'thumbnail' : '" + vkString.thumbnail +"','comments' : '"+ vkString.comments + "','origin' : '"+vkString.origin +"','";
vkQuery = vkQuery + "userFullName' : '"+ vkString.userFullName +"','title' : '"+ vkString.title +"','userId' : '"+ vkString.userId +"',";
vkQuery = vkQuery + "'userPhotoUrl' : '"+ vkString.userPhotoUrl +"','_id' : '"+vkString._id+"','desc' : '"+vkString.desc +"'}";
var vkInsert = db.command("sql",vkQuery);