Skip to content

Commit

Permalink
Merge pull request #56 from adobe/duynguyen-patch-1
Browse files Browse the repository at this point in the history
Add pre-req for the BYO cosmos DB account
  • Loading branch information
meryllblanchet authored Sep 21, 2020
2 parents aa388fe + d444a2c commit 4e356f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ npm install @adobe/aio-lib-state
const state = await stateLib.init({ ow: { namespace, auth } })
// init when env vars __OW_API_KEY and __OW_NAMESPACE are set (e.g. when running in an OpenWhisk action)
const state = await stateLib.init()
// or if you want to use your own cloud DB account
// or if you want to use your own cloud DB account (make sure your partition key path is /partitionKey)
const state = await stateLib.init({ cosmos: { endpoint, masterKey, databaseId, containerId, partitionKey } })

// get
Expand Down

0 comments on commit 4e356f9

Please sign in to comment.