You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and I use java to insert data like that :
ODocument vUser1 = db.createVertex("User").field("name", "user1").field("uuid", UUID.fromString("017e6162-3b6f-4ae1-a171-2470b63dff00").toString());
db.save(vUser1);
ODocument vUser2 = db.createVertex("User").field("name", "user2").field("uuid", UUID.fromString("027e6162-3b6f-4ae1-a171-2470b63dff00").toString());
db.save(vUser2);
db.save(db.createEdge(vUser1, vUser2, "Friend").field("created", new Date()));
db.save(db.createEdge(vUser2, vUser1, "Friend").field("created", new Date()));
And in gremlin console I try command but I haven't effect. Only when I use g.E.outV or g.E.outIn I have list records
EDIT :
In CONSOLE I do that :
gremlin> v1 = g.addVertex();
==>v[#9:-3]
gremlin> v2 = g.addVertex();
==>v[#9:-4]
gremlin> e = g.addEdge(v1,v2, 'friend');
To populate the db you use the Deprecated Native Graph API, so you've to set the compatibility mode:
alter database custom useLightweightEdges=false
alter database custom useClassForEdgeLabel=false
alter database custom useClassForVertexLabel=false
alter database custom useVertexFieldsForEdgeLabels=false
I use package orientdb-graphed-1.5.0.
In scripts I create CLASS to database
and I use java to insert data like that :
ODocument vUser1 = db.createVertex("User").field("name", "user1").field("uuid", UUID.fromString("017e6162-3b6f-4ae1-a171-2470b63dff00").toString());
db.save(vUser1);
ODocument vUser2 = db.createVertex("User").field("name", "user2").field("uuid", UUID.fromString("027e6162-3b6f-4ae1-a171-2470b63dff00").toString());
db.save(vUser2);
db.save(db.createEdge(vUser1, vUser2, "Friend").field("created", new Date()));
db.save(db.createEdge(vUser2, vUser1, "Friend").field("created", new Date()));
And in gremlin console I try command but I haven't effect. Only when I use g.E.outV or g.E.outIn I have list records
EDIT :
In CONSOLE I do that :
gremlin> v1 = g.addVertex();
==>v[#9:-3]
gremlin> v2 = g.addVertex();
==>v[#9:-4]
gremlin> e = g.addEdge(v1,v2, 'friend');
gremlin> g.V.out
==>v[#9:-4]
That it's working.
Why gremlin not show me result when I run g.V.out for object made by JAVA.
The text was updated successfully, but these errors were encountered: