Skip to content

Invalid findOne() invocation #2804

Answered by Inayat-C
Inayat-C asked this question in Q&A
Discussion options

You must be logged in to vote

.....and just as i suspected, it was a silly error from my part :).

As stated in the docs, findOne() lets you find an item on the database that has a UNIQUE attribute. I was trying to find an email address record on my table which wasn't set to be unique.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Inayat-C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant