3.6.2 • Published 2 years ago

jovo-db-cosmosdb v3.6.2

Weekly downloads
54
License
Apache-2.0
Repository
-
Last release
2 years ago

Azure CosmosDB Database Integration

To view this page on the Jovo website, visit https://v3.jovo.tech/marketplace/jovo-db-cosmosdb

Learn how to store user specific data of your Alexa Skills and Google Actions to Cosmos DB.

Tutorial: Deploy to Azure

Introduction

The Cosmos DB integration allows you to store user session data in the NoSQL service running on Azure using their MongoDB API. This integration is especially convenient if you're running your voice app on Azure Functions. You can find the official documentation about Cosmos DB here: docs.microsoft.com/cosmos-db.

Learn more about hosting your application on Azure Functions.

Configuration

Download the package like this:

$ npm install --save jovo-db-cosmosdb

Cosmos DB can be enabled in the src/app.js file like this:

// @language=javascript

// src/app.js

const { CosmosDb } = require('jovo-db-cosmosdb');

// Enable DB after app initialization
app.use(new CosmosDb());

// @language=typescript

// src/app.ts

import { CosmosDb } from 'jovo-db-cosmosdb';

// Enable DB after app initialization
app.use(new CosmosDb());

Inside your config.js file you have to set your primary connection string and your database name. You can also optionally set the collection name (default is UserData):

// @language=javascript

// src/config.js

module.exports = {
    
    db: {
        CosmosDb: {
            uri: '<primary_connection_string>',
            databaseName: '<database_name>',
            collectionName: '<collection_name>'
        }
    }

    // ...

};

// @language=typescript

// src/config.ts

const config = {
    
    db: {
        CosmosDb: {
            uri: '<primary_connection_string>',
            databaseName: '<database_name>',
            collectionName: '<collection_name>'
        }
    }

    // ...

};
3.6.2

2 years ago

3.6.1

2 years ago

3.6.0

2 years ago

3.5.1

3 years ago

3.5.0

3 years ago

3.4.1

3 years ago

3.4.0

3 years ago

3.3.1

3 years ago

3.3.0

3 years ago

3.2.2

3 years ago

3.2.1

3 years ago

3.2.0

4 years ago

3.1.5

4 years ago

3.1.4

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.0

4 years ago

3.0.22

4 years ago

3.0.21

4 years ago

3.0.20

4 years ago

3.0.19

4 years ago

3.0.18

4 years ago

3.0.17

4 years ago

3.0.16

4 years ago

3.0.15

4 years ago

3.0.14

4 years ago

3.0.13

4 years ago

3.0.12

4 years ago

3.0.11

4 years ago

3.0.10

4 years ago

3.0.9

4 years ago

3.0.8

4 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.2.22

4 years ago

2.2.21

4 years ago

2.2.19

4 years ago

2.2.18

4 years ago

2.2.16

5 years ago

2.2.15

5 years ago

2.2.14

5 years ago

2.2.13

5 years ago

2.2.12

5 years ago

2.2.11

5 years ago

2.2.10

5 years ago

2.2.9

5 years ago

2.2.8

5 years ago

2.2.7

5 years ago

2.2.6

5 years ago

2.2.5

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.5

5 years ago

2.1.4

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.10

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago