0.13.0 • Published 6 years ago
@emeralt/database-cloud-firestore v0.13.0
@emeralt/database-cloud-firestore
Emeralt database plugin to store packages in Google Cloud Firestore
Install
Using npm:
npm install @emeralt/database-cloud-firestore
or using yarn:
yarn add @emeralt/database-cloud-firestore
Usage
new EmeraltDatabaseCloudFirestore(options)
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
},
}