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
favoriteTrackwhere both are equal? That sounds like anANDis what you're after!