Should not allow creating vertex with only one of the composite index
I have created unique composite index using : .addKey(key1).addKey(key2).unique().buildCompositeIndex()
I want to keep the combination of key1 and key2 unique. Please let me know if I can achieve that with the above statement.
Also i found that janusgraph is allowing me to create vertices using only one of the key, for example i can create vertices with key1 only, why it is allowing me to do so? shouldnt it fail since key2 is not given?
0 Replies