Skip to content

not getting undefined string filter on the backend #130

Answered by omar-dulaimi
omar-dulaimi asked this question in Q&A
Discussion options

You must be logged in to vote

I found this on the prisma docs:

Get all User records with zero posts
const result = await prisma.user.findMany({
  where: {
    post: {
        none: {} // User has no posts
    }
  }
}

So sending undefined is actually what I need. Thank you for having this implemented.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by omar-dulaimi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant