You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When inserting two ownerships of the same unique or key attribute by the same owner, TypeDB throws an error. This should not be the case as attribute idempotency will ensure that the data that is actually written does not violate the constraint.
define
person sub entity;
person owns id @key;
person owns email @unique;
person owns name;
id sub attribute, value string;
email sub attribute, value string;
name sub attribute, value string;
Run:
insert
$p3 isa person, has id "p3", has id "p3", has email "p3", has email "p3";
Expected result
TypeDB identifies that data write query will not violate @unique constraint on email, or the @key constraint on id.
The text was updated successfully, but these errors were encountered:
Description
When inserting two ownerships of the same unique or key attribute by the same owner, TypeDB throws an error. This should not be the case as attribute idempotency will ensure that the data that is actually written does not violate the constraint.
Environment
b44218f
Reproducible Steps
Expected result
TypeDB identifies that data write query will not violate
@unique
constraint onemail
, or the@key
constraint onid
.The text was updated successfully, but these errors were encountered: