I have 2 content types:
governanceGroup and people
People can belong to multiple governanceGroups
I want to get in 1 request the people who are assigned to the requested governance group
How do I change this? Linked doesn’t bring them back.
Promise.all([
cms.cmsClient.getEntries({
'content_type': 'governanceGroup',
'fields.slug': slug
}),
])
.then(([n]) => {
group = n.items[0];
res.render('corporate/who-we-are/group', {
group
});
})
.catch(error => {
console.log(error);
});
Within the CMS, it shows the linked people (Peter Parker) - I want to get a response which contains the governance type and the people