I am trying to configure loopback4 with firestore data source using loopback-connector-firestore connector. when i am trying to post it is showing error code 500 with Error: Internal Server Error. Please tell me where i am exactly doing wrong.
It is simple.
lb4 datasource
.other
.loopback-connector-firestore
. Please note that all connector for loopback 3 must work in loopback 4.src/datasources
project folder open your new datasourceName.datasource.json
file and add the following keys that you can find in the downloaded JSON file from the Google Cloud Platform in the previous step:{
"projectId": "",
"clientEmail": "",
"privateKey": "",
"databaseName": "Optional, Default: projectId"
}
That is all. Now, if you have models, repositories and controller previously created you can run npm start
, open the explorer and test your endpoints.
Regards.