I have a user table and role table and in the user table I am referencing the Role table to store the full role document as an array. But upon creating a user with a role and querying it in Mongo I am only seeing this:
roles" : [
DBRef("roles", ObjectId("63e4c8edb1d6b11e636809f6"))
],
But in reality I want to see the full Mongo document of it. I am using spring boot 2.7.8