Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
12-20-2022 10:12 PM
"UNIQUEKID" | "CONSTRAINT ON ( keyword:Keyword ) ASSERT (keyword.id) IS UNIQUE" | "Constraint( id=10, name='UNIQUEKID', type='UNIQUENESS', schema=(:Keyword {id}), ownedIndex=9 )" |
I add a keyword node with name "residual network" with relationship "recommend" between other node.
after, I add a keyword node with same name "residual network"
match (k:Keyword) return k;
the two node that have same name property "residual network" return with different number id
Please fix this error.
12-21-2022 07:20 AM
>>the two node that have same name property "residual network" return with different number id
but you constraint of
CONSTRAINT ON ( keyword:Keyword ) ASSERT (keyword.id) IS UNIQUE"
will insure that the id is unique and not duplicated. The constraint you have defined does nothing about unqiueness for the name property. So I'm not sure I am seeing an issue
All the sessions of the conference are now available online