How can i associate id of the post (card) to an existing user

i m making a social media app using mern and redux for state management my question is how can i associate a post to the user who created the post in fact i m not having any issues with the details filled by the user when he adds a post i can access it from the front end maybe because it has simple data but for the case of creator it s nested
createur:[{type:mongoose.Schema.Types.ObjectId,ref:"user"}],
also in redux devtools i can see it as empty when i check the chart so my main problem how i associate id to the creator so i can access it from the client side .
i tried to show it this line of code while it s empty in redux devtools <Body><Avatar src={post.createur.selectedFile}></Avatar> {post.createur.Nom} {post.createur.Prenom} </Body>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.