DB/Neo4j

[Neo4j] Expected a result with a single record, but this result contains at least one more. Ensure your query returns only one record.

잔망루피 2023. 1. 29. 20:53
반응형
Expected a result with a single record, but this result contains at least one more. Ensure your query returns only one record.

 

 

상황) 

A가 B를 follow하는 메소드 내에서 findByUserid를 하면서 발생했다.

 

 

원인)

쿼리가 1개 이상의 값을 반환하기 때문이다.

 

 

해결)

Neo4j Desktop에 들어가서 확인해보니 userid가 중복으로 있어서 제거했다.

 

 

참고 👇

https://stackoverflow.com/questions/73070405/spring-data-neo4j-expected-a-result-with-a-single-record-but-this-result-contai

 

Spring Data Neo4j Expected a result with a single record, but this result contains at least one more. Ensure your query returns

I develop an event meeting application using Spring and Neo4j database. This is my model: Member can Create Event and other member can register and check in event when member who is organizer has s...

stackoverflow.com

 

반응형

'DB > Neo4j' 카테고리의 다른 글

Neo4j 설치  (0) 2023.01.14