Syncleus / Ferma

An ORM / OGM for the TinkerPop graph stack.

Home Page:http://syncleus.com/Ferma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Adding label to a vertex

porunov opened this issue · comments

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.

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");