Next.js Discord

Discord Forum

Querying a database

Unanswered
Palomino posted this in #help-forum
Open in Discord
PalominoOP
So I'm trying to query a database using prisma client in such a way that when a user logs in the system checks if they're already in the sytem and if not it creates a record for them. But it's not working. Please help.

2 Replies

This should be able to do all of it in one query