Dean Valentine
08/17/2021, 10:44 AMfunction resolveSession(cookies: Cookies, select: Prisma.SessionSelect) {
const session = await prisma.findUnique(where {...}, select: merge(select, {id: xxx, token: yyy, ...}),
...verify session integrity
return session
}
Dean Valentine
08/17/2021, 2:39 PMRyan
08/18/2021, 7:26 AMfindUnique
. You need to do it after you fetch the response so you’ll get better the correct types in that case based on what you have defined for the session..