Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have seen in many places that to access nested documents and collections the pattern is something like db.collection("users").doc("frank").collection("pets") etc.

This makes a lot of sense to me and is easy to understand. The trouble is, my (React) project is set up in the Web version 9 way. I've combed the docs over and over and can't see anything that goes beyond referencing X doc in Y collection.

I need to reference Users > uid > someCollection

But in the Web Version 9 way I can only do: doc(db, "users", uid)

How do I go deeper?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
398 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...