[orientdb] Re: insert as select nested json problem

2015-07-20 Thread alessandrorota04
Hi Anton, try this function with the parameter message {id: 123, text: aaa, user: [{id: 200, name: bbb},{ id: 201, name: ccc}]} var obj = JSON.parse(message); var user=obj.user; var g=orient.getGraph(); for(i=0;iuser.length;i++){ var content='id' : '+ user[i].id+' , 'name' : '+

[orientdb] Re: insert as select nested json problem

2015-07-19 Thread normanLinux
If you do this within a function you may find Allessando's great answer to my query Access JSON parameters inside Javascript fuction will guide you to make it work easily On Friday, 17 July 2015 19:37:37 UTC+1, Anton K wrote: greetings i got nested json in shema-less mode message: {

Re: [orientdb] Re: insert or select?

2015-03-23 Thread Luigi Dell'Aquila
Hi, I already answered in your previous email ;-) 2015-03-22 0:44 GMT+01:00 pumplerod pumple...@gmail.com: I'm sorry, I thought I was in the pyorient group. Though perhaps someone here can answer the question. On Saturday, March 21, 2015 at 6:43:21 PM UTC-5, pumplerod wrote: is there

[orientdb] Re: insert or select?

2015-03-21 Thread pumplerod
I'm sorry, I thought I was in the pyorient group. Though perhaps someone here can answer the question. On Saturday, March 21, 2015 at 6:43:21 PM UTC-5, pumplerod wrote: is there a way to select a record or insert if it does not exist? The doc for OrientDB mentions upsert, however I cannot