Skip to content

Where In with MongoDB Nested Document #21371

Answered by andrewl94
andrewl94 asked this question in Q&A
Discussion options

You must be logged in to vote

I figured out not long after posting.
I was missing the relation filter: https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#is

For reference:

var arrayTypes : string[] = input.materialTypes
typeValue = {
  is:{
    type:{in:arrayTypes}
  }
};

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nurul3101
Comment options

Answer selected by andrewl94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants