How to add "OR" to prisma nodejs ? I don't have it in prisma

prisma

#1

Hi! In prisma nodejs - I don’t have “OR”

Screenshot_2019-05-30%20Playground%20-%20http%20192%20168%201%2033%205466%20(2)

but here I HAVE “OR”

Can you help me
How to add “OR” to prisma?

that why that code didn’t work

where: {
    OR: [
      {
        title_contains: 'graphql',
      },
      {
        title_contains: 'prisma',
      },
    ],
    createdAt_gt: '2018',
    createdAt_lt: '2020',
  },

#2

did you solve it? Im having the same issue. Im trying to create a search toolbar but use just one where argument is useless.


#3

No! I did’n solve it :disappointed:


#4

I already solved it with the help of harshit. You just need to change your database because it doesnt works with mongo


#5

Thanks, but I can’t change database


#6

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.