Skip to content
Discussion options

You must be logged in to vote

You would need to mark the email field in your schema as @unique, because findUnique queries only by unique fields.
If you don't want to mark email as @unique, you can try using findFirst

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@ranran2121
Comment options

@chemicalkosek
Comment options

@ranran2121
Comment options

Answer selected by jharrell
Comment options

You must be logged in to vote
1 reply
@robertiagar
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants