Search code examples
javaorientdb

How do I edit Vertex Properties in OrientDB?


I have a vertex that I pulled using the following g.getVertexByKey("object", "Foo"). The object key is indexed, but it has other properties like count. It looks somewhat like this:

Vertex V:
- object (idx)
- count

How do I update the count property for the vertex?

Thanks


Solution

  • With Vertex instance you can use

    v.setProperty(final String key, final Object value);

    then v.save()