Rich Starkie
08/11/2022, 12:42 PMwhere conditions ...
eg:
where:{
shelfId: id,
shelfPublished: true
}
shelfPublished is a Boolean (probably obvious but thought worth mentioning)Austin
08/11/2022, 6:46 PMAustin
08/11/2022, 6:57 PMRich Starkie
08/11/2022, 9:48 PMconst {id} = req.params;
console.log(id)
const artistDetails = await prisma.libraryArtists.findUnique({
where: {
artistId: id,
},
include: {...etc...}
I want this, plus I want to filter on artistLibrary: true too, at the moment i'm `if`ing it before the API return, but that seems to be a long way round the bush and probably wont work when there are more than just 1 entry to filter when I put some more testing data inAustin
08/15/2022, 6:38 PMwhere conditions?Rich Starkie
08/16/2022, 10:44 AM{version: 4.2.1}Austin
08/16/2022, 9:46 PMVladi Stevanovic
Rich Starkie
08/30/2022, 2:11 PMVladi Stevanovic