Try

var results = gdb.command( "sql", "select from Group where GroupId=?", [ 20 
] );

and see if that works.



Op dinsdag 24 juni 2014 21:40:19 UTC+2 schreef Team Xcelerator Inc.:
>
> I have been having a terrible time try to create a simple function in the 
> studio for a graph database.  I have selected Javascript and try to run the 
> following code:
>
>     var gdb = orient.getGraph();
>     var results = gdb.command("select from Group where GroupId=?", 20);
>
> I get the following error message:
> com.orientechnologies.orient.core.exception.OSecurityException: Language 
> 'select from group where groupid=?' is not allowed to be executed
>
> I have tried to enable server side scripting just in case. The allowed 
> languages was originally set to SQL.  I removed this param to hopefully 
> enable Javascript, but that didn't help.  Can someone please tell me how I 
> can create a function for use against a graph database using the Javascript 
> option.
>
> Thanks,
> Ronnie
>

-- 

--- 
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