Re: [orientdb] Insert Document without using SQL via JavaScript API

2015-05-19 Thread Omega Silva
Awesome! This works!! Thanks Luigi On Monday, May 18, 2015 at 1:08:15 PM UTC+5:30, Luigi Dell'Aquila wrote: > > Hi Omega, > > you should be able to do something like > > var newEmployee = db.newInstance("Employee"); > newEmployee.field("name", "John"); > newEmployee.save(); > > Luigi > > > > > >

Re: [orientdb] Insert Document without using SQL via JavaScript API

2015-05-18 Thread Luigi Dell'Aquila
Hi Omega, you should be able to do something like var newEmployee = db.newInstance("Employee"); newEmployee.field("name", "John"); newEmployee.save(); Luigi 2015-05-15 5:01 GMT+02:00 Omega Silva : > Hi Luigi, > > Thanks for the response. I'm executing this inside OrientDB (OFunction). > >

Re: [orientdb] Insert Document without using SQL via JavaScript API

2015-05-14 Thread Omega Silva
Hi Luigi, Thanks for the response. I'm executing this inside OrientDB (OFunction). On Thursday, May 7, 2015 at 2:43:43 PM UTC+5:30, Luigi Dell'Aquila wrote: > > Hi Omega, > > where are you executing this javascript code? Is it in a web page, in > Node.js or inside OrientDB (eg. an OFunction)? >

Re: [orientdb] Insert Document without using SQL via JavaScript API

2015-05-07 Thread Luigi Dell'Aquila
Hi Omega, where are you executing this javascript code? Is it in a web page, in Node.js or inside OrientDB (eg. an OFunction)? 2015-05-07 5:59 GMT+02:00 Omega Silva : > Hi all, > > The Java API facilitates creating documents in the following style; > > ODocument newEmployee = new ODocument("Em

[orientdb] Insert Document without using SQL via JavaScript API

2015-05-06 Thread Omega Silva
Hi all, The Java API facilitates creating documents in the following style; ODocument newEmployee = new ODocument("Employee"); newEmployee.field("name", "John"); newEmployee.save(); Does the JavaScript API have something similar? Cheers. Omega -- --- You received this message because you ar