Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+7 votes

My project has a collection of posts, and a collection of profiles. Each document in the profile collection has a field that contains a username. I need to get that username and include it in the post when it is displayed on the page. I feel like there should be an easy answer to this, but I've been going in circles trying to use different queries and firebase methods.

asked in CSC490_Spring202021 by (1.5k points)

2 Answers

+5 votes

use the get() function

answered by (2.6k points)
+3 votes

This page https://firebase.google.com/docs/firestore/query-data/get-data is where you probably want to look. There are some examples that you should be able to alter to meet your needs.

answered by (2.2k points)
...