当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript DocumentReference.collection方法代码示例

本文整理汇总了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")
   );
 }
开发者ID:kevmo314,项目名称:canigraduate.uchicago.edu,代码行数:7,代码来源:institution.ts

示例2: extension

 extension(id: string): Program {
   return new Program(
     this.institution,
     this.ref.collection("extensions").doc(id),
     this.subprogramsRef
   );
 }
开发者ID:kevmo314,项目名称:canigraduate.uchicago.edu,代码行数:7,代码来源:program.ts

示例3: sequences

 get sequences(): Observable<string[]> {
   return publishIndex(this.ref.collection("sequences"));
 }
开发者ID:kevmo314,项目名称:canigraduate.uchicago.edu,代码行数:3,代码来源:institution.ts

示例4: sequence

 sequence(id: string) {
   return new Sequence(this.ref.collection("sequences").doc(id));
 }
开发者ID:kevmo314,项目名称:canigraduate.uchicago.edu,代码行数:3,代码来源:institution.ts

示例5: course

 course(id: string) {
   return new Course(this, this.ref.collection("courses").doc(id));
 }
开发者ID:kevmo314,项目名称:canigraduate.uchicago.edu,代码行数:3,代码来源:institution.ts

示例6: watches

 get watches(): Observable<string[]> {
   return publishIndex(this.ref.collection("watches"));
 }
开发者ID:kevmo314,项目名称:canigraduate.uchicago.edu,代码行数:3,代码来源:institution.ts

示例7: watch

 watch(id: string) {
   return new Watch(this.ref.collection("watches").doc(id));
 }
开发者ID:kevmo314,项目名称:canigraduate.uchicago.edu,代码行数:3,代码来源:institution.ts

示例8: programs

 get programs(): Observable<string[]> {
   return publishIndex(this.ref.collection("programs"));
 }
开发者ID:kevmo314,项目名称:canigraduate.uchicago.edu,代码行数:3,代码来源:institution.ts

示例9: extensions

 get extensions(): Observable<string[]> {
   return publishIndex(this.ref.collection("extensions"));
 }
开发者ID:kevmo314,项目名称:canigraduate.uchicago.edu,代码行数:3,代码来源:program.ts

示例10: term

 term(id: string) {
   return new Term(this.ref.collection("terms").doc(id));
 }
开发者ID:kevmo314,项目名称:canigraduate.uchicago.edu,代码行数:3,代码来源:course.ts


注:本文中的@firebase/firestore-types.DocumentReference.collection方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。