Does Prismic support 'OR' searching between fields?

I'm creating a search interface and having looked at the documentation, I can't see any reference into how to do 'OR' searches between fields. I can run parallel searches and then combine the results, but this feels a little odd. Does anyone have any experience of this?


Hey @andrzej!

The Prismic GraphQL schema doesn't currently support an alternative to AND & OR. You can filter the response using the where argument. As a matter of fact, GraphQL itself doesn't work natively with these operators. (Here's a more extensive response from @leebyron about this topic)

Usually, you'd use the where argument to accomplish the filtering processes that you need. It'll depend on your use case.

Thanks @Paulina - we'll take a look. Thanks for your help.

1 Like

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