Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Latest commit

 

History

History

emeralt-database-cloud-firestore

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@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
  },
}