-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphQL Forbidden Error When Using _or Condition in Entries Query #1286
Comments
Have you enabled the filter in your GraphQL config file? |
Also, It looks like it's a platform specific feature. Maybe you've used a service like Hasura or Strapi in the past which has support for an I'll move this issue to the ideas repo. |
Yes I have enabled all selected filters |
Ok, So Statamic supports logical conditions like "or" in graphql ? or will this be in the upcoming versions ? |
It doesn't support it right now. |
@jasonvarga @jackmcdade We work on over 25 projects annually using Statamic, and this feature is essential for our workflow. Could you let us know if there's an expected timeline for its implementation? This would help us avoid resorting to building a RESTful API as an alternative. Thank you! |
Bug description
What happened? What did you expect to happen?
When using an _or condition in a GraphQL query to filter entries, the query returns a "Forbidden" error. I expected the query to return entries matching either of the conditions specified.
Error Message:
Forbidden for _or condition.
How to reproduce
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
Is there any current way to use _or conditions in GraphQL? If not, is there an alternative or a planned fix for this issue?
Thank you for your help!
The text was updated successfully, but these errors were encountered: