0

How do I reference an array in the collections? For example: I have a collection("Info").doc("Username").collection() in which the collection () contains a list of user hobbies in an array. How would i reference it and display it?

1 Answer 1

1

You can get references to subcollection by

collection("Info").doc("Username").listCollections()

Reference: https://googleapis.dev/nodejs/firestore/latest/Firestore.html#listCollections

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.