# Query Search by three fields

**URL:** https://forum.builder.io/t/query-search-by-three-fields/3761
**Category:** Technical Questions
**Created:** [June 22, 2023, 2:09pm UTC](https://forum.builder.io/t/query-search-by-three-fields/3761 "2023-06-22T14:09:20Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)
#### Post date: [June 22, 2023, 6:16pm UTC](https://forum.builder.io/t/query-search-by-three-fields/3761/2 "2023-06-22T18:16:11Z")

</div>

Hello @Shintaro,

Welcome to the [builder.io](http://builder.io) forum.

Below is an example that does query search based on multiple fields

```auto
{
  'query.name.$eq': 'Qwik Blog 2023',
  'query.published.$ne': 'archived',
}

```

```auto
  const articles = await builder.getAll("blog-article", {
    limit: 30,
    query:{
      'name': {$ne: 'Qwik Blog 2023'},
      'lastUpdated': {$ne: "1686026776524"},
    },
  });

```

> [@Why is the query returning an empty array?](https://forum.builder.io/t/why-is-the-query-returning-an-empty-array/3315/3):
>
> Hi @matheusnogueira unfortunately, the syntax you referred to didn’t work. But I tried to change my query for the topic. // it works { "topic.id": { $eq: "..." } } // it doesn't work { "topic": { id: { $eq: "..." } } }

---

_[View the full topic](https://forum.builder.io/t/query-search-by-three-fields/3761)._
