System Information
- Strapi Version: 4.1.5
- Operating System: Mac OS
- Database: PostgresQL
- Node Version: v16.14.0
- NPM Version: 8.3.1
Hello,
Is there a way to make a graphQL query and apply the or
filter against a repeatable component?
For example, if I have a collection called Books
and a field in that collection that is a repeatable component called samplePages
with the following fields pageNumber
and chapter
.
I want to make the following query but it does not appear to work. I can make the or filter query against a collection but not the repeater field. Are repeater fields not supported with or filter?
query ( $number: String) {
books{
data {
id
attributes {
label
samplePages(
filters:
{or: [
{pageNumber: {eq: $number},
chapter: {eq: $number}
} ]}
) {
id
}
}
}
}
}
Thank you,