MongoDB schema design for multiple auth user accounts
1) There are three strategies that you might take to structure your data in MongoDB: a) Array of embedded documents b) Array of embedded references c) Expanded into the parent document Strategy (a) is the first one you describe, where the Profile document contains an array of Account sub-documents. Strategy (b) is similar to strategy …