REST API Population not showing

all populations not showing when try to get deeper populate

http://localhost:1337/api/tasks/49?populate=comments&populate[users][populate]=avatar&populate=comments&populate=board

only showing users avatar populate but ignoring board and comments.

When i remove populate to user avatar everything works fine

This topic has been created from a Discord post (1232670288685170729) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

Hi,

You can use the query builder to help you :

Let me show you some exemple of deep populate :

{
  sort: ['title:asc'],
  populate: {
    mission_slots: {
      populate: {
        slot: {
          fields: ['begin', 'end', 'date']
        },
        users_permissions_users: {
          fields: ['firstname', 'lastname', 'phone', 'email']
        }
      }
    }
  },
}

the query generator will give you the right syntax :

/api/missions?sort[0]=title:asc&populate[mission_slots][populate][slot][fields][0]=begin&populate[mission_slots][populate][slot][fields][1]=end&populate[mission_slots][populate][slot][fields][2]=date&populate[mission_slots][populate][users_permissions_users][fields][0]=firstname&populate[mission_slots][populate][users_permissions_users][fields][1]=lastname&populate[mission_slots][populate][users_permissions_users][fields][2]=phone&populate[mission_slots][populate][users_permissions_users][fields][3]=email

it works! Thanks!