Need setting that prevent duplicate edges on the same pair of vertex

Ex: When run this command “CREATE EDGE Own FROM aPerson TO aPet” multiple times, I don’t want the DB create multiple ‘Own’ edges to the same pet. Imagine how many real-world use cases are similar to this.

It would be more convenient and less error-prone to have that kind of setting (maybe ‘NO-DUPLICATE’) at class level rather than rely on user writing commands to check this conditions every edges creation.

You can enforce single edges by creating an Index, and forcing the indices to be UNIQUE.