I have a function:
export async function deleteFavoriteTrack({profileId, trackId}) {
await db.delete(favoriteTracks).where(eq(favoriteTracks.profileId, profileId));
}
I can put only one "eq". How can i make like in prisma like:
where {
profileId,
trackId
}
You want to delete the
favoriteTrack
where both are equal? That sounds like anAND
is what you're after!