I just install the Community Edition.VERSION 2.0-M2

Using the Studio I created an Employee (superClass V) with a "name" String 
property.
Then in the Function Management I have:
var gdb = orient.getGraph();

for(var i=0; i < num; i++){
  
 var name = prefix + '_' + i;
 var emp = {
    '@class': 'Employee',
    name: name
 };
  var res = gdb.save(emp);
}



gdb.commit();
return i;

when I run it I get:

Erroronparsingscriptatposition#0: ErroronexecutionofthescriptScript: 
createEmployee------^TypeError: orientgraph[
    plocal: ${
        ORIENTDB_HOME
    }/databases/MyOrientDB
]hasnosuchfunction"save"in<eval>atlinenumber11TypeError: orientgraph[
    plocal: ${
        ORIENTDB_HOME
    }/databases/MyOrientDB
]hasnosuchfunction"save"

Can someone enlighten me on why the save method on the gdb is not available 
? 



-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to