ideclonOriginal post
Rank 5: Hypervisor
I’m creating a comments system in an app - only signed in users can comment. I want to store each user’s ID with the comment (each comment is a document), then get the user’s name to display on the page.
Summary
The user wants to get a user's name with their ID in a comments system. The solution provided is to either use the Users SDK inside a cloud function or create two collections, one for comments and one for user details. Storing the user ID with the comment and updating the second collection when the user changes their name can be a solution. This allows accessing the user's name without using a cloud function.
cloud function