Syncleus / Ferma

An ORM / OGM for the TinkerPop graph stack.
http://syncleus.com/Ferma
Apache License 2.0
136 stars 26 forks source link

Feature request: Adding label to a vertex #47

Closed porunov closed 6 years ago

porunov commented 6 years ago

I am using Ferma with JanusGraph. JanusGraph allows to set a label to a vertex. It would be awesome if Ferma could assign labels to vertices. Right now Ferma always assigns vertex label to all vertices.

porunov commented 6 years ago

I didn't find it in the Ferma documentation but found in the Tinkerpop documentation. Here is how to create vertices with custom labels:

Animal animal = 
framedGraph.addFramedVertex(new DefaultClassInitializer<>(Animal.class), T.label, "animal");