We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ee9aff commit 1da089cCopy full SHA for 1da089c
driver/src/main/java/org/neo4j/driver/internal/InternalResultCursor.java
@@ -201,7 +201,7 @@ public Record first()
201
public Record single()
202
{
203
Record first = first();
204
- if( !iter.hasNext() )
+ if( iter.hasNext() )
205
206
throw new NoSuchRecordException( "Expected a result with a single record, but this result contains at least one more. " +
207
"Ensure your query returns only one record, or use `first` instead of `single` if " +
0 commit comments