Greetings,
I am working on a function to add a vertex where one of the properties is a
link to another class. I'm getting errors on submission. Basic code
example is...
var gdb = Orient.getGraph();
var properties = JSON.parse(props);
var newV = gdb.addVertex("class:Area");
var vType = gdb.getVertex(properties.type);
newV.setProperty("name", properties.name);
newV.setProperty("desc", properties.desc);
newV.setProperty("type", vType);
gdb.commit();
With this code, or with vType.getIdentity() or vType.getId(), an error is
returned as...
"sun.org.mozilla.javascript.internal.WrappedException: Wrapped
java.lang.StringIndexOutOfBoundsException: String index out of range: 0"
I do successfully get vType back from the getVertex call.
If I simply try "properties.type" then I get an error, as expected, that
the type needs to be either a record or record_id.
Thoughts? Thanks
--
---
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.