# Content API - How to query a list's attributes

**URL:** <https://forum.builder.io/t/content-api-how-to-query-a-lists-attributes/679>\
**Category:** Technical Questions\
**Created:** [June 4, 2021, 5:18pm UTC](https://forum.builder.io/t/content-api-how-to-query-a-lists-attributes/679 "2021-06-04T17:18:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jballo](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jballo](https://forum.builder.io/u/jballo)\
**Post date:** [June 4, 2021, 5:18pm UTC](https://forum.builder.io/t/content-api-how-to-query-a-lists-attributes/679/1 "2021-06-04T17:18:30Z")

</div>

In the Data content models, it’s possible to set up a model that can have a list attribute, that refers to other models.

I was wondering how to query for this in the content API?

I know I can query for direct attributes of the model, by adding the URL param `&query.data.active=true` for example.

In my example, I have a model that has a List referring to another model, so I assume the query should be something like `query.data.meatTypes.[].meatType.value.data.name=Beef`, but I’m not sure what operator to put in the middle. I tried `[]` and `$ne`, but it doesn’t appear to have any effect.

---

<div class="post-metadata">

**Author:** ![jballo](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jballo](https://forum.builder.io/u/jballo)\
**Post date:** [June 4, 2021, 5:31pm UTC](https://forum.builder.io/t/content-api-how-to-query-a-lists-attributes/679/2 "2021-06-04T17:31:38Z")

</div>

So far I found I am able to do this on a List’s model’s id, eg. I can do

`query.data.meatTypes.meatType.id=<id>`

This suggests there is no need for a specific operator when running into an array.

However, I am unable to filter on any of the values of the reference model. e.g. `query.data.meat_types.meatType.value.data.name=Beef` still doesn’t work

Is this a platform limitation? Could this be made to be possible?

---

<div class="post-metadata">

**Author:** ![kara](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/kara/32/80_2.png) [@kara](https://forum.builder.io/u/kara)\
**Post date:** [June 9, 2021, 8:42pm UTC](https://forum.builder.io/t/content-api-how-to-query-a-lists-attributes/679/3 "2021-06-09T20:42:16Z")

</div>

Hey @jballo You can query the reference id, but the reference itself is not loaded, so you’re not able to query through the references. We would recommend not using a list of references for this field, and instead use a list of strings and querying for the value.
