I am working with Graphql and then I come to a situation where I need to populate, but I am not getting how to excute that.
Here is my Booking schema
I hope it may help you.
const result = await booking.save(); const res=await booking.findById(result._id).populate("user"); console.log(res)