Error for Cast to ObjectId failed for value "[object Object],[object Object],[object Object]
By : facebook-10153560190
Date : March 29 2020, 07:55 AM
will be helpful for those in need I don't have a solution but I can try to explain what the problem is, or at least why it isn't working in your case. Although there's couple of solutions at the end that may or may not work.. Your provider.posts is an array of another set of documents referenced by "Posts", as defined in your Provider schema.