Hey guys, so I am on my summer break from college and I am developing a small budgeting PWA. I am using nodejs for my API and I will be using Vuejs for my front end.My problem is that I am using mongoDB and have hit a snag with my collections, I have the users collection which is the user information they register with, it will contain an array for the money diary they will create on their first log in and I want to connect this collection via the user ID to the created money diary for said user, which will be stored in a separate collection.I know this might be more tedious than using a non-relational database, but how do I have it so it is created with a reference to the user ID?The login, register and create money diary functions are working, but I haven't been able to get my head into this as I am a bit rusty having just had a kid!Any help or advice would be greatly appreciated!
Submitted July 20, 2020 at 12:29PM by leviarcanine
No comments:
Post a Comment