Create a Firestore collection reference

Create a Firestore collection reference

Code sample

Go

usersRef := client.Collection("users")

Java

// Reference to the collection "users"
CollectionReference collection = db.collection("users");

Node.js

const usersCollectionRef = db.collection('users');

Python

users_ref = db.collection(u'users')