MCPcopy Index your code
hub / github.com/angular/angularfire / doc

Method doc

src/compat/firestore/firestore.ts:224–233  ·  view source on GitHub ↗
(pathOrRef: string | DocumentReference<T>)

Source from the content-addressed store, hash-verified

222 doc<T>(path: string): AngularFirestoreDocument<T>;
223 doc<T>(ref: DocumentReference): AngularFirestoreDocument<T>;
224 doc<T>(pathOrRef: string | DocumentReference<T>): AngularFirestoreDocument<T> {
225 let ref: DocumentReference<T>;
226 if (typeof pathOrRef === 'string') {
227 ref = this.firestore.doc(pathOrRef) as firebase.firestore.DocumentReference<T>;
228 } else {
229 ref = pathOrRef;
230 }
231 const refInZone = this.ngZone.run(() => ref);
232 return new AngularFirestoreDocument<T>(refInZone, this);
233 }
234
235 /**
236 * Returns a generated Firestore Document Id.

Callers 10

createIdMethod · 0.45
randomNameFunction · 0.45
createRandomStocksFunction · 0.45
deleteThemAllFunction · 0.45
delayUpdateFunction · 0.45
delayAddFunction · 0.45
delayDeleteFunction · 0.45
firestore.spec.tsFile · 0.45
singleWrapperFunction · 0.45
tripleWrapperFunction · 0.45

Calls

no outgoing calls

Tested by 8

randomNameFunction · 0.36
createRandomStocksFunction · 0.36
deleteThemAllFunction · 0.36
delayUpdateFunction · 0.36
delayAddFunction · 0.36
delayDeleteFunction · 0.36
singleWrapperFunction · 0.36
tripleWrapperFunction · 0.36