Unique edges for demodb:HasFriend


what is the recommended approach to make edges unique?
create edge HasFriend from #61:70 to #61:1;
create edge HasFriend from #61:70 to #61:1; – this should fail

One solution i found is to use an index:
create index HasFriendIdx on HasFriend (in, out) unique;

But this seams to be expensive…

Thanks, Mike

Hi @rueger

Yes, that’s a bit expensive, but as of now that’s the only solution to enforce edge uniqueness at database level