``` // returning the search result ...
# orm-help
s
Copy code
// returning the search result
        return await this.client.user.findUnique({where: {email}});
what's the right way of doing this? currently throws
'email' does not exist in type 'UserWhereUniqueInput'.
-- what's the expected way?
1
k
Did you do prisma generate again & reload your window ?
s
I thought I did, as it was a change I made days ago, so I did it all again and reloaded to make sure I don't look stupid
that was it.
I haven't rebooted my pc or closed that vscode window all week lol
k
👍
Always do it again, it's 99% of the time the actual issue
n
Thanks Kevin for the suggestion 🙌