I'm trying to filter some data from strapi based on key fields. I have a key in every component, and I can sort each component by that key. In graphql, I need to filter multiple components using the "and" & "or" keywords.
query {
pageLayouts(filters: { key: { eq: "faqs" } }) {
data {
id
attributes {
title
subtitle
menus {
data {
id
attributes {
name
Entry {
id
title
link
}
}
}
}
}
}
}
}
What i need is:
filters: { key: { eq: "faqs" or "aboutus", or "privacy" or home page"} }
It's like retriving data