Hi, I have an implicit many to many relationship (...
# orm-help
c
Hi, I have an implicit many to many relationship (a user has many chats and a chat can belong to 2 -so many - users). How can I find one chat (chat.findUnique) where I give 2 user ID’s and prisma gets the chat that belongs to these two users? I can’t find it anywhere in the documentation...
n
Hey 👋 If you could share your models of users and chat I can help in formulating the exact query. You might be interested in findFirst or findUnique queries.