Product Updates

DatoCMS changelog for new features and general improvements
New Content Delivery API

Introducing explicit AND operators in filter expressions for enhanced convenience

April 19th, 2023

Filter expression conditions have always been implicitly combined using a logical AND. However, there are situations where explicitly incorporating an AND expression can greatly improve the filtering experience:

query {
allArtists(
filter: {
AND: [
{ name: { matches: { pattern: "Blank" } },
{ name: { matches: { pattern: "Banshee" } }
]
}
) {
id
name
genre
}
}

In the example provided, the same filter type is required multiple times within the same expression. Without an explicit AND operator, this would not be achievable.

We're excited to announce that alongside the pre-existing OR operator, you can now seamlessly incorporate explicit AND operators into your GraphQL queries for optimal flexibility and customization.

Start using DatoCMS today
According to Gartner 89% of companies plan to compete primarily on the basis of customer experience this year. Don't get caught unprepared.
  • No credit card
  • Easy setup
Subscribe to our newsletter! 📥
One update per month. All the latest news and sneak peeks directly in your inbox.
support@datocms.com ©2025 Dato srl, all rights reserved P.IVA 06969620480