# Expand Collection Links

**URL:** <https://discourse.getcockpit.com/t/expand-collection-links/297>\
**Category:** Support\
**Created:** [September 26, 2018, 8:53am UTC](https://discourse.getcockpit.com/t/expand-collection-links/297 "2018-09-26T08:53:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guarana](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@guarana](https://discourse.getcockpit.com/u/guarana)\
**Post date:** [September 26, 2018, 8:53am UTC](https://discourse.getcockpit.com/t/expand-collection-links/297/1 "2018-09-26T08:53:20Z")

</div>

Hello,  
when fetching an entity all relations are only referenced (for example collectionLinks with properties \_id, link and display).  
With this normalization I have to now make new requests to fetch the required entites.

Is there a parameter where I can expand those children/relations to include them in the request so I have the data directly included?

---

<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 26, 2018, 10:09am UTC](https://discourse.getcockpit.com/t/expand-collection-links/297/2 "2018-09-26T10:09:08Z")

</div>

try `populate: -1`

mentioned in the docs: [https://getcockpit.com/documentation/api/collections](https://getcockpit.com/documentation/api/collections)

---

<div class="post-metadata">

**Author:** ![jingyao97](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/jingyao97/32/127_2.png) [@jingyao97](https://discourse.getcockpit.com/u/jingyao97)\
**Post date:** [October 10, 2018, 8:45pm UTC](https://discourse.getcockpit.com/t/expand-collection-links/297/3 "2018-10-10T20:45:13Z")

</div>

Hi,

I really wonder why my request is not working even though i have tried both populate:1 and populate:-1

> fetch(url+“?token=”+token, {  
> method: ‘post’,  
> headers: { ‘Content-Type’: ‘application/json’ },  
> body: JSON.stringify({  
> populate: -1  
> })  
> }).then(resp=\>resp.json())  
> .then(success).catch(err)

Can you please help me with this
