# How to define sub selection in query?

**URL:** https://forum.weaviate.io/t/how-to-define-sub-selection-in-query/997
**Category:** Support
**Created:** [November 21, 2023, 3:05pm UTC](https://forum.weaviate.io/t/how-to-define-sub-selection-in-query/997 "2023-11-21T15:05:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kokogrr](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/kokogrr/32/435_2.png) [@kokogrr](https://forum.weaviate.io/u/kokogrr)
#### Post date: [November 21, 2023, 3:05pm UTC](https://forum.weaviate.io/t/how-to-define-sub-selection-in-query/997/1 "2023-11-21T15:05:13Z")

</div>

Hi again, still trying to work with nested objects.

TLDR: We try to query using .with\_where additional filter on nested object property, but apparently we don’t know how to address the nested prop properl.

Details:

Using:

- Weaviate 1.22.3,
- Python Weaviate Client 3.25.3

I have defined a nested object in Question schema:

```auto
"properties": [
   {
  "dataType": [
    "object"
  ],
  "description": "Property with persistent data, that need to be copied over to the new version of the page.",
  "indexFilterable": True,
  "indexSearchable": True,
  "name": "persistent_data",
  "nestedProperties": [
    {
        "name": "hidden",
        "dataType": ["boolean"],
        "description": "Should the page be hidden",
    }
  ]    
},
    
   ... rest of props
]

```

No I try to query for :

```auto
self._client.query.get(class_name, ["text", "summary", "persistent_data { hidden }", "questions"]).with_where(
  {
             "path": ["persistent_data", "hidden"],
             "operator": "Equal",
              "valueBoolean": False
   }
)

```

I get following error:

```auto
[{'locations': [{'column': 6, 'line': 1}], 'message': "could not extract filters: invalid where filter: missing an argument after 'hidden'", 'path': ['Get', 'Page3']}]

```

I suppose the `path` is not defined correctly. Any idea what do I miss?

---

<div class="post-metadata">

### Author: ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)
#### Post date: [November 21, 2023, 5:47pm UTC](https://forum.weaviate.io/t/how-to-define-sub-selection-in-query/997/2 "2023-11-21T17:47:44Z")

</div>

Hi!

Nested objects was [released in 1.22](https://weaviate.io/developers/weaviate/release-notes/900_1_22), and it doesn’t support filtering yet.

We were not mentioning this in our docs 😬

It should be updated soon to point that limitation.

Thanks for asking!!

---

<div class="post-metadata">

### Author: ![kokogrr](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/kokogrr/32/435_2.png) [@kokogrr](https://forum.weaviate.io/u/kokogrr)
#### Post date: [November 21, 2023, 10:02pm UTC](https://forum.weaviate.io/t/how-to-define-sub-selection-in-query/997/3 "2023-11-21T22:02:58Z")

</div>

Thanks a lot for the reply.  
Bad news but good to know, so we’ll have to use some workaround for now. Do you by any chance have an idea ‘how soon’ this filtering might bo coming?

---

<div class="post-metadata">

### Author: ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)
#### Post date: [November 23, 2023, 1:14am UTC](https://forum.weaviate.io/t/how-to-define-sub-selection-in-query/997/4 "2023-11-23T01:14:35Z")

</div>

It is in our [backlog](https://weaviate.io/developers/weaviate/roadmap#backlog) and listed as an [issue here](https://github.com/weaviate/weaviate/issues/3694)

It’s a good one to leave a thumbs up there so we can try to influentiate that roadmap 😉

---

<div class="post-metadata">

### Author: ![Nivedha](https://avatars.discourse-cdn.com/v4/letter/n/90db22/32.png) [@Nivedha](https://forum.weaviate.io/u/Nivedha)
#### Post date: [December 14, 2023, 10:02am UTC](https://forum.weaviate.io/t/how-to-define-sub-selection-in-query/997/6 "2023-12-14T10:02:44Z")

</div>

Hi,  
Is filtering now available in nested objects? Trying to query nested objects using where filter but getting error in addressing path. When will this feature be made available?

---

<div class="post-metadata">

### Author: ![kokogrr](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/kokogrr/32/435_2.png) [@kokogrr](https://forum.weaviate.io/u/kokogrr)
#### Post date: [December 14, 2023, 11:56am UTC](https://forum.weaviate.io/t/how-to-define-sub-selection-in-query/997/7 "2023-12-14T11:56:05Z")

</div>

You can check the backlog / roadmap linked above. It’s in backlog there with 20 votes, so my guess is it’s still not available but I’m not associated with Weaviate team so that’s all I know.
