I have simple node User that has UserId attribute which has unique constraint setup.
I started profiling my queries and noticed that every time I perform match against User node by UserId NodeByLabelScan performed instead of NodeUniqueIndexSeek.
I tried simplest match below.
match (u:User {UserId:"id"}) return u and index scan doesn't work.
If I specify index explicitly everything works fine.
match (u:User {UserId:"id"}) using index u:User(UserId) return u
Could anyone clarify why this happening.