My query is like:
const urlParamsObject = {
filters: { slug },
populate: {
cover: { fields: [‘url’] },
authorsBio: { populate: ‘’ },
category: { fields: [‘name’] },
blocks: { populate: '’ }
},
};
but the blocks parts give me 500: InternalServerError
I tried
populate: {
cover: { fields: [‘url’] },
authorsBio: { populate: ‘*’ },
category: { fields: [‘name’] },
blocks: {
on:{
‘blocks.rich-text’: {
populate: [‘content’]
},
},
},
},
but it does not response me the rich text content in the API outputs.
Anyone has ideas of how to write this query? Thanks in advance.
This topic has been created from a Discord post (1289250845522788463) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord