Expand Collection Links

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?

1 Like

try populate: -1

mentioned in the docs: https://getcockpit.com/documentation/api/collections

2 Likes

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