Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+8 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 point)

2 Answers

+5 votes

use the get() function

answered by (1 point)
+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 (1 point)
...