Neo4j can't recognize string type unique constraint

"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.

@EunjiPark

>>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