本文整理匯總了TypeScript中@firebase/firestore-types.DocumentReference.collection方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript DocumentReference.collection方法的具體用法?TypeScript DocumentReference.collection怎麽用?TypeScript DocumentReference.collection使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@firebase/firestore-types.DocumentReference
的用法示例。
在下文中一共展示了DocumentReference.collection方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: program
program(id: string) {
return new Program(
this,
this.ref.collection("programs").doc(id),
this.ref.collection("subprograms")
);
}
示例2: extension
extension(id: string): Program {
return new Program(
this.institution,
this.ref.collection("extensions").doc(id),
this.subprogramsRef
);
}
示例3: sequences
get sequences(): Observable<string[]> {
return publishIndex(this.ref.collection("sequences"));
}
示例4: sequence
sequence(id: string) {
return new Sequence(this.ref.collection("sequences").doc(id));
}
示例5: course
course(id: string) {
return new Course(this, this.ref.collection("courses").doc(id));
}
示例6: watches
get watches(): Observable<string[]> {
return publishIndex(this.ref.collection("watches"));
}
示例7: watch
watch(id: string) {
return new Watch(this.ref.collection("watches").doc(id));
}
示例8: programs
get programs(): Observable<string[]> {
return publishIndex(this.ref.collection("programs"));
}
示例9: extensions
get extensions(): Observable<string[]> {
return publishIndex(this.ref.collection("extensions"));
}
示例10: term
term(id: string) {
return new Term(this.ref.collection("terms").doc(id));
}