atlassian-connect-firestore
v1.0.0
Published
Firestore Adapter for Atlassian Connect Express
Downloads
80
Maintainers
Readme
Firestore Adapter for Atlassian Connect Express
Usage
To use the storage adapter, add the key "adapter" to the config.json
:
"store": {
"adapter": "firestore"
}
Then make sure that you register the adapter factory with the following code:
const admin = require('firebase-admin');
const functions = require('firebase-functions');
const { factory } = require('atlassian-connect-firestore')
admin.initializeApp(functions.config().firebase)
const db = admin.firestore()
ac.store.register('firestore', factory(db))