Spring Mongo Data returns all objects instead of DBRef id
I’m working with Spring and MongoDB. I have a Folder class which has a list of subfolders and a list of files. I’m using DBRef which stores the reference id to the list objects instead of the whole object in the database.
Spring Mongo Data loads whole object list but I only want the rederence id
I’m working with Spring and MongoDB. I have a Folder class which has a list of subfolders and a list of files. I’m using DBRef which stores the reference id to the list objects instead of the whole object in the database.