I have some blog posts, which each potentially can have two categories I modeled by selected fields. Let's call them category A and category B. The options for the categories are identical, let's call them x, y and z.
Now I would like to query all my blog posts of category z. But since z can occur in either field A or field B, I would need find an OR which I did not see in my extensive reading of the JavaScript docs yet.
Any pointers to solve this without having to make two requests would be highly appreciated
You want to query all blog_posts that link to the red category from either the primary_category or secondary_category.
The most straightforward way to do this is to do two queries: one query where the primary_category matches 001, and another query where the secondary_category matches 001. Then, merge the responses in your code.
However, it's possible that I misunderstood your use case. If so, please let me know, and we can keep working through it.
Best,
Sam
Pau
closed , flag & select 'Something Else' to reopen.
4
This thread has been closed due to inactivity. Flag to reopen.