Support filtering on array column types #460
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Describe the feature request
This feature request aims to add support for filtering operations on array types in
pg_graphql
. Currently,pg_graphql
doesn't support filter operations on any array types, including but not limited to enums and integers as first thought in this ticket.Detailed Description
Array types are a common structure in PostgreSQL, and their utility within GraphQL queries is significant. The ability to filter these arrays directly within GraphQL queries would enhance the power and flexibility of the
pg_graphql
extension.Example Use Case
Consider a table
doc
with an array of enums and an array of integers:The resulting GraphQL schema will be:
In the current setup, users are unable to filter these array fields using pg_graphql. For instance, filtering
doc
records whereenumArr
contains 'VALUE_ONE' orintArr
contains the number 1 is not possible.Expected Behavior
eq
(equals) andcontains
for array fields.Versions:
The text was updated successfully, but these errors were encountered: