basically I was doing something like this before a...
# orm-help
b
basically I was doing something like this before and now it doesn't work obviously with using the Mongo connector with Prisma so wondering if there is some better way with the connector to do this now:
Copy code
query SEARCH_SNAKES_QUERY($searchTerm: String!) {
    snakes(
      where: {
        OR: [
          { name_contains: $searchTerm }
          { description_contains: $searchTerm }
        ]
      }
    ) {
      id
      image
      name
    }
  }
h
I know it is not so great experience at the moment but this problem is widely related to how the mongodb connector core is laid out and there is no easy way for us to solve this at the moment without a big rewrite. Right now, as a workaround you can make two queries and combine the result of them.
b
ok well for now I'm just gonna use postgres til a lot of this gets more fine tuned, thanks