DEV Community

likayeltsova for flotiq

Posted on

📣 Exciting Update: Introducing the version of the "Equals" Filter in Flotiq Headless CMS! 🚀

We're thrilled to announce a powerful new feature in Flotiq headless CMS that will revolutionize your content filtering experience. Introducing the possibility where you can pass multiple items in the "Equals" filter, designed to provide even greater flexibility and control when querying your data.

🔎 What is the "Equals" Filter?
The "Equals" filter allows you to pass multiple elements as a filter, ensuring that the results match any of the specified values. This means you can now easily retrieve content that corresponds to a specific set of criteria in a single API request.

🌟 How Does it Work?
Let's dive into an example to illustrate the capabilities of the "Equals" filter:

Suppose you have a "name" field in your content type, and you want to fetch all the products with names "product-1" or "product-2." With the "Equals" filter, you can simply use the following API query.

Before:

{"name":{"type":"equals", "filter":"product-1"}}

Now:

{"name":{"type":"equals", "filter":["product-1", "product-2"]}}

By leveraging this new filter, you can effortlessly retrieve the desired results without making multiple requests or complex workarounds.

📚 Want to Learn More?
To explore the full potential of the "Equals" filter and its usage scenarios, we encourage you to check out our comprehensive documentation. You'll find detailed information, code examples, and practical insights on incorporating this feature into your Flotiq headless CMS workflow.

👉 Learn More about the "Equals" Filter

✨ If you have any questions, need assistance, or want to share your feedback, our dedicated team is here to help you every step of the way.

Thank you for choosing Flotiq headless CMS as your trusted content management solution. We're excited to see how the "Equals" filter simplifies and empowers your content querying!

Happy Filtering! 🎉

Top comments (0)