Emeralt database plugin to store packages in Google Cloud Firestore
Using npm:
npm install @emeralt/database-cloud-firestore
or using yarn:
yarn add @emeralt/database-cloud-firestore
new EmeraltDatabaseCloudFirestore(options)
type Options = {
prefix?: {
collection: string // default: emeralt-test
document: string // default: emeralt-test
},
// credentials for firestore
// https://cloud.google.com/compute/docs/access/service-accounts
firestore?: {
projectId?: string
keyFilename?: string
credentials?: string
timestampsInSnapshots?: string
},
}