Hello! I am building an app that displays a list of “To Do” items to users. The To Do list is pre-defined and is the same across all users. I want users to be able to mark a To Do list item as “Complete” and then update only the logged-in user who marked it as complete and hide the item. Any recommendations on how to do this? Thanks!
Just Create the todo for the User when the user signs up. So, if your app has 3 default todos, create three of the relevant Things when the user signs up (you can do this automatically using a backend trigger on the User only when User before change is empty).
Do a search for Todos where User = Current User to display them.
The alternative is saving a List of Completed Todos on the User data type.
Would creating the Todo when a user signs up create 3 separate things in the database? One for each of the tasks?
Yes, and that’s fine
1 Like