CockpitQL
CockpitQL copied to clipboard
Linked item does not work
{
allPerson {
name
image {
url
}
}
}
It returns url
as null
. It seems like linked items only return _id
Had a similar Problem. Looking through the closed issues, I sumbled across this reply
It suggest to set the populate
parameter:
query {
allCategories(populate:1) {
_id,
Subcategories {
Name
}
}
}
and it's working!
Also worth knowing - if you have deeper levels of nested linked collections, you can just increase the populate integer as necessary.