'query' does not exist in type 'QueryFn' | angularfire2

后端 未结 5 1210
渐次进展
渐次进展 2021-02-09 04:18

Argument of type \'{ query: { limitTolast: number; orderByKey: boolean; }; }\' is not assignable to parameter of type \'QueryFn\'.Object literal may only specify known propertie

5条回答
  •  臣服心动
    2021-02-09 04:57

    You can try this code:

    return this.db.list('/categories', ref => ref.orderByChild('name')).valueChanges();
    

提交回复
热议问题