I have users, objects and object groups. Group and object have some icon and name. Each user can share either one object or the whole group. When a user shares a group or object, he assigns rights to it. Subsequently, the user can change the rights and description for one object or for a whole group.
I tried to figure out how to store this structure in mongodb but always stumbled over some problems, or getting data,or changing, or maintaining consistency was too complicated. Please, help. Should I not use mongodb, but use graph databases?