Hey I am having an issue here @zigzago
I have two collections.
One is Post which looks like this
data class Post(
@BsonId
val postId: String = ObjectId().toString(),
val title: String,
val post: String,
val likes: List<String> = emptyList(),
val createdAt: String? = null,
val createdBy: String? = null,
val updatedAt: String? = null,
val shortUrl: String? = null,
val isDeleted: Boolean? = false,
val comments: List<String> = emptyList()
)
and other is User which has userId and name.
My use case is in the post.likes which is a list of string of userIds. I want to do a call where I can populate the likes as literally user objects how we do in Mongoose. Lookup query is not working here.
Can you please help...Its a bit urgent