dyaa / loopback-connector-firestore

Firebase Firestore connector for the LoopBack framework.
MIT License
31 stars 28 forks source link

How to get/set data from Firestore? #160

Closed kss943 closed 4 years ago

kss943 commented 5 years ago

Can someone explain how to get/set/delete data from Firestore? I tried this in my controller but it doesnt work:

@get('/firebase/doctors')
  async getDoctor(
  ): Promise<any> {
    return await this.doctorRepository.get('Doctor');
  }