Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Request: Enable filtering for non array properties contained in an array #4111
This was previously raised in #1645, allowing for filtering for a property in an array using the example:
@KyleAMathews answered that it is already a feature and showed an example using
It would be great if
FWIW I was able to work around this by adding an
Query throws a graphQL error, syntax is not supported.
Query should resolve and include any nodes with ids of 123, 456 or 789.
Steps to reproduce
1. Perform a graphQL allThings query with a filter for id existing in an array of strings:
@adam-kuhn couple hints if You want to implement this:
Here we add operators to filters in schema:
And here's where actual filtering take place - https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/schema/run-sift.js