I'm trying to save a JS Object to an orientdb class, but the values itself aren't persisting. A "record" is created tough.
I'm following this example: https://github.com/nitrog7/node-orientdb/wiki/Graph-Database#wiki-create-a-new-vertex
node version: v0.10.26
orientdb version: orientdb-community-1.7-rc1
var vertex = {
'@class':'People',
'id':'123',
'name':'Giraldo'
};
db.vertexCreate(vertex)
.then(function(results){
console.log(results);
})
.error(function(error){
console.log('Error creating a vertex:', error);
});
Result:
{ '@class': 'p',
'@type': 'd',
'@version': 1,
'@rid': { clusterId: 13, clusterPosition: 48, recordId: '#13:19' } }
Schema:

Browse to object:

Anyone knows what I'm doing wrong?