How to query the blocks dynamic zone exists the article content-type?

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

BTW, I am using Strapi V5.

I figured it out, it just as simple as api/articles?populate=*
it returns level ones components. works for me so far.

There is this package if you want auto deep population: strapi-v5-plugin-populate-deep - npm