I'm not using java api but according with documentation it works exactly as when you creates a new vertex (as expected) but you have to retrieve it before.
Retrieve: https://github.com/orientechnologies/orientdb/wiki/Document-Database#retrieve-documents Update: https://github.com/orientechnologies/orientdb/wiki/Document-Database#update-a-document If you want to add a new fiels to a document (vertex) just retrieve it and write: myvertex.field( "new_field_name", "new_field_value" ); myvertex.save(); In sql: update #34:56 set new_field_name = 'new_field_value' On Friday, December 20, 2013 10:57:04 PM UTC+1, Nice Guy wrote: > > Hi, > > Is there a way to update a vertex to add a new field after it is created? > > Right now, I am doing. > ODocument myVertex; > myVertex = database.createVertex("TestVertex"); > myVertex.field("firstLable", someText); > > Is it possible to add new *Fields * to "TestVertex" after it is created? > > 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/groups/opt_out.
