@adearriba/shopify-app-session-storage-cosmosdb
v3.1.0
Published
Shopify App Session Storage for Azure Cosmos DB
Downloads
61
Maintainers
Readme
Session Storage for Cosmosdb - Shopify App
Shopify App Session Storage for Azure Cosmos DB
Create an instance by using withCredentials
static method:
const cosmosDBSessionStorage = CosmosDBSessionStorage.withCredentials(
"endpoint",
"key",
"dbName"
);
Optionally, you can use an additional configuration by adding a CosmosDBSessionStorageOptions
object that includes the ability to change the container name and add ContainerRequest
parameter to pass to Azure CosmosDB container creation. Refer to the Official ContainerRequest Docs
const cosmosDBSessionStorage = CosmosDBSessionStorage.withCredentials(
"endpoint",
"key",
"dbName",
{
containerName: "shopify_sessions",
containerRequest: {
partitionKey: "/id",
...
},
}
);