Is it possible to have bidirectional dbref in mongodb (like what we can have in a relational database, a one-to-many bidirectional relationship). If possible, this can be represented in Mongodb, as well as using Spring -mongodb. The exact scenario I come across is below
Say we would like to create a forum. A forum can have several forums. Each topic can be posted, but the message should be marked with one forum topic. There is one-to-many relationships between forums -> threads and Topic -> posts, there is also a connection with posts -> forum threads. Given the situation, how can this be solved with Spring-Mongodb.
source share