also having problems with 2 `where` conditions ......
# prisma-client
r
also having problems with 2
where
conditions ... eg:
Copy code
where:{
shelfId: id,
shelfPublished: true
}
shelfPublished is a Boolean (probably obvious but thought worth mentioning)
👀 1
a
What kind of problems are you having?
@Rich Starkie please continue in the threads I have created. Can you share the full code snippet?
r
Copy code
const {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 in
a
What’s the issue you are having when trying 2
where
conditions?
r
same error, all that gets returned is
{version: 4.2.1}
a
Could you create a small reproduction repo and share it with me so I can accurately recreate this?
v
Hey @Rich Starkie - same here, let us know if this is still an open question!
r
still open, just moved to the back burner for me at the moment
v
Ok, it makes sense! When you have more time to create a small reproduction repo please ping us again and we'll take a look asap!