Link to-do to user

Resolved

Hello,

I'm building a simple to-do app to train myself. I encountered a problem.

I have an action to create a to-do item in the collection to-do.
But this to-do item isn't linked to a specific user.

I then want to be able to fetch all users to-do item to display them in app.

I already added signup and have the users collection created with uid().

I guess I should add uid() to every to-do item I create.

Or maybe to-do needs to be a subcollection of users?

Whats the best way to handle it?

6 replies