Populate relation nested into components, which are nested in collection type

I’m trying to populate a relation nested within the “components.article” field in my custom Strapi API. Here’s the relevant part of my custom API:

const selectedPage = await strapi.db.query(“api::page.page”).findOne({
where: {
data_page: {
Slug: {
$eq: /${id},
populate: [“data_page”, “components”],

However, when I retrieve the data, I notice that the relation within the “components.article” field is not being populated as expected. Here’s a snippet of the result:

“id”: 2,
“DisplayName”: “about”,
“createdAt”: “2024-01-18T17:48:47.139Z”,
“updatedAt”: “2024-01-22T15:39:40.033Z”,
“publishedAt”: “2024-01-18T17:48:48.031Z”,
“data_page”: {
“id”: 2,
“Title”: “about”,
“Slug”: “/about”,
“createdAt”: “2024-01-18T17:44:09.633Z”,
“updatedAt”: “2024-01-18T17:44:15.259Z”,
“publishedAt”: “2024-01-18T17:44:15.253Z”
“components”: [
“__component”: “components.alert”,
“id”: 1,
“Content”: “Contrary to popular belief, Lorem Ipsum is not simply random text…”
{ “__component”: “components.article”, “id”: 2 }

As you can see, the relation within “components.article” is not populated. Can anyone provide guidance on how I can successfully populate this nested relation?

Thanks in advance