# Specifying object key in a query for an array of objects

**URL:** <https://community.parseplatform.org/t/specifying-object-key-in-a-query-for-an-array-of-objects/992>\
**Category:** REST API\
**Created:** [November 1, 2020, 2:25am UTC](https://community.parseplatform.org/t/specifying-object-key-in-a-query-for-an-array-of-objects/992 "2020-11-01T02:25:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eugene](https://community.parseplatform.org/user_avatar/community.parseplatform.org/eugene/32/341_2.png) [@eugene](https://community.parseplatform.org/u/eugene)\
**Post date:** [November 1, 2020, 2:25am UTC](https://community.parseplatform.org/t/specifying-object-key-in-a-query-for-an-array-of-objects/992/1 "2020-11-01T02:25:07Z")

</div>

Hello!

I have a field that stores an array of objects that looks like this:

players:

```
[
  {
    "assists": 0,
    "deaths": 0,
    "hero": "hero_name",
    "team": 2,
    "playerId": 0,
    "steamId": "1234",
    "kills": 0,
  }
]

```

how do i use rest api to get results for which “assists”: 0? I tried `where={"players": {"assists": 0}}` but I suspect I might not be understanding how to utilize rest api correctly…

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [November 1, 2020, 6:01pm UTC](https://community.parseplatform.org/t/specifying-object-key-in-a-query-for-an-array-of-objects/992/2 "2020-11-01T18:01:01Z")

</div>

Try `where={"players.assists": 0}`
