extends QueryableReference
See Queryable Reference for query load
, query
and condition methods which are shared between Collection
and Condition
references.
let ref = store.collection('messages');
→ string
Document id
→ string
Document path
→ DocumentReference
Creates a new Document Reference which points to collections's parent
let coll = store.doc('users/zeeba/messages');
let ref = coll.parent;
ref.path // → 'users/zeeba'
Creates a new Document Reference which points to nested document.
let coll = store.collection('users');
let ref = coll.doc('zeeba');
ref.path // → 'users/zeeba'