This library provides custom actions for Bot Framework/Composer to do operations against cosmos stores.
To install into your project run the cli:
dotnet add package Iciclecreek.Bot.Builder.Dialogs.Database.Cosmos
To add to your schema for usage in Bot Framework Composer from cli:
bf dialog:merge -p yourproj.proj -o your.schema
This library adds actions for comos datastores.
Action | Description |
---|---|
Iciclecreek.Cosmos.CreateDatabase | create a database |
Iciclecreek.Cosmos.DeleteDatabase | delete a database |
Action | Description |
---|---|
Iciclecreek.Cosmos.CreateContainer | create a Container |
Iciclecreek.Cosmos.DeleteContainer | delete a Container |
Action | Description |
---|---|
Iciclecreek.Cosmos.CreateItem | create an item in a Container |
Iciclecreek.Cosmos.UpsertItem | create or update an item in a Container |
Iciclecreek.Cosmos.GetItem | get an item from a Container |
Iciclecreek.Cosmos.ReplaceItem | replace an item from a Container |
Iciclecreek.Cosmos.DeleteItem | delete an item in a Container |
Iciclecreek.Cosmos.QueryItems | query for items in a Container |
{
"$kind": "Iciclecreek.Cosmos.CreateDatabase",
"connectionString": "=settings.cosmosConnectionString",
"database": "mydb"
},
{
"$kind": "Iciclecreek.Cosmos.CreateContainer",
"connectionString": "=settings.cosmosConnectionString",
"database": "mydb",
"container": "mycont",
"partitionKey": "/id"
},
{
"$kind": "Microsoft.SetProperties",
"assignments": [
{
"property": "$entity.id",
"value": "123123"
},
{
"property": "$entity.name",
"value": "Superman"
}
]
},
{
"$kind": "Iciclecreek.Cosmos.CreateItem",
"connectionString": "=settings.cosmosConnectionString",
"database": "mydb",
"container": "mycont",
"item": "=$entity",
"resultProperty": "$entity"
},