Closed mtveerman closed 3 years ago
Hi @mtveerman
I think this is related to the fact that OrientGraph is no longer in the classpath, as it implements Apache TinkerPop 2, that was removed from the standard distro and replaced with TinkerPop3 in the orientdb-tp3 distribution
I'll check and let you know
Thanks
Luigi
Ok, I understand after reading through some of the docs.
Do I understand it correctly that in v3 I can use the "standaard" database using orient.getDatabase()
also for all graph operations?
Maybe an update in the docs is needed: https://orientdb.com/docs/3.0.x/admin/Functions-DB-Access.html
Hi @mtveerman
Yes, that would be much better. And yes, that page definitely needs a review, let me do it now
Thanks
Luigi
Fortunately I found this thread. I just started with OrientDB and function programming and was really confused when receiving "orient.getGraph() is not a function" although the doc states that the function exists. An update is definitely needed to avoid confusion here.
OrientDB Version: 3.0.1
Java Version: 1.8.0_171
OS: Windows 7
Expected behavior
In Javascript server side function, orient variable should of class OScriptGraphOrientWrapper when using graph database.
Actual behavior
orient variable is of class OScriptOrientWrapper, even on Graph database. Therefore, code like
var db = orient.getGraphNoTx();
produces an error.Steps to reproduce
testdb
print(orient);
select testdb()
-> look at console.