-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Expose Content Fields Indexing via GraphQL for content field filtering #12781
Comments
@MikeAlhayek you may be interested in this. |
@Piedone thanks. Yes this is what is needed to allow one to filter by specific fields. I don't have much time to dig in, have anyone started working on this? Currently the API isn't very useful without this. What if I have my own index, what are the steps needed to add the filters for my custom index? |
I'm not aware of anybody working on this. |
I remembered @carlwoodhouse was working on GraphQL, also I don't want to forget @hyzx86 he did a great contributions on both workflow and GraphQL |
Why don't you try a script query? #12766 If you're interested, you can find that in EasyOC. |
This comment was marked as outdated.
This comment was marked as outdated.
Duplicates #7047. |
Is your feature request related to a problem? Please describe.
If you want to filter (with
where
) on the value of content fields, you have to implement aWhereInputObjectGraphType
for it. There's no built-in way to filter on content field values from GraphQL.This came up in this discussion too.
Describe the solution you'd like
We already have Content Fields Indexing to be able to run SQL queries for field values. Let's build on that, and expose such SQL indices in GraphQL too.
Describe alternatives you've considered
An alternative would be to manually create indices for each field, and a
WhereInputObjectGraphType
for each of them.Also, we could expose SQL Queries too: #16008.
The text was updated successfully, but these errors were encountered: