# Missing attributes from linked collections

**URL:** <https://discourse.getcockpit.com/t/missing-attributes-from-linked-collections/1014>\
**Category:** Support\
**Created:** [September 12, 2019, 9:10am UTC](https://discourse.getcockpit.com/t/missing-attributes-from-linked-collections/1014 "2019-09-12T09:10:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakou32](https://avatars.discourse-cdn.com/v4/letter/y/c4cdca/32.png) [@yakou32](https://discourse.getcockpit.com/u/yakou32)\
**Post date:** [September 12, 2019, 9:10am UTC](https://discourse.getcockpit.com/t/missing-attributes-from-linked-collections/1014/1 "2019-09-12T09:10:11Z")

</div>

I have a singleton, with a linkedCollection field.

Querying for this collection will display all the expected data.

For example:

```auto
     "entries": [
          {
               "label": "Diamond",
               "icon": {
                    "path": "diamond.svg"
               }
          },

```

However, when querying the parent singleton, the image field is missing:

```auto
     "myLinkedCollection" [
          {
               "_id": "xxxxxxxxxxxxx",
               "link": "myLinkedCollection",
               "display": "Diamond"
          }
     ],

```

Also, I can see that I don’t find the same “label” attribute…

Are the linked collections not displayed when the parent is queried?

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [September 12, 2019, 11:49pm UTC](https://discourse.getcockpit.com/t/missing-attributes-from-linked-collections/1014/2 "2019-09-12T23:49:13Z")

</div>

how do you query the singleton?

---

<div class="post-metadata">

**Author:** ![raffaelj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/raffaelj/32/331_2.png) [@raffaelj](https://discourse.getcockpit.com/u/raffaelj)\
**Post date:** [September 13, 2019, 6:21pm UTC](https://discourse.getcockpit.com/t/missing-attributes-from-linked-collections/1014/3 "2019-09-13T18:21:58Z")

</div>

> [@yakou32](#):
>
> However, when querying the parent singleton, the image field is missing:

Add `"populate":1` to your query.

---

<div class="post-metadata">

**Author:** ![yakou32](https://avatars.discourse-cdn.com/v4/letter/y/c4cdca/32.png) [@yakou32](https://discourse.getcockpit.com/u/yakou32)\
**Post date:** [September 13, 2019, 9:10pm UTC](https://discourse.getcockpit.com/t/missing-attributes-from-linked-collections/1014/4 "2019-09-13T21:10:15Z")

</div>

I use `/api/singletons/get/{singletonname}`

---

<div class="post-metadata">

**Author:** ![yakou32](https://avatars.discourse-cdn.com/v4/letter/y/c4cdca/32.png) [@yakou32](https://discourse.getcockpit.com/u/yakou32)\
**Post date:** [September 13, 2019, 9:11pm UTC](https://discourse.getcockpit.com/t/missing-attributes-from-linked-collections/1014/5 "2019-09-13T21:11:36Z")

</div>

Thank you so much!!!
