Reputation: 333
I am trying to create a Spring Boot project with Neo4j. I connected successfully with Neo4j. But when I save data to Neo4j, it has error. Below is my project:
User:
UserRepository: User Controller: UserService:
And when I call API signup to save user to Neo4j. It has error in UserService at line "userRepository.save(user);". Here is it:
Thank you so much in advance!
Upvotes: 1
Views: 103
Reputation: 41676
Do you by chance created two users in your database with the same id?
Can you please check that? A good way to avoid that is to
create constraint on (u:User) assert u.id is unique;
Upvotes: 1