Dzoukr / CosmoStore

F# Event store for Azure Cosmos DB, Table Storage, Postgres, LiteDB & ServiceStack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collection name cannot be specified?

deyanp opened this issue · comments

Hi,

I am looking into creating a Cosmos DB database with shared throughput across all collections/containers. It seems the database name can be specified when setting up the configuration, but the collection/container name not? Asking because I wanted to create several XxxEvents collections, and have different Cosmos Db Triggers assigned to each one ..

I see that another attribute can easily be added to CosmoStore.CosmosDb.Configuration, and used in CosmoStore.CosmosDb.EventStore.

But I see in the js sproc hardcoded Events, any idea how that can be changed?

Hi @deyanp,

you are right, currently it cannot be changed, but I got an idea how to put more separate collections into one database. I'll keep it open until solved.

Fixed in v2.1.0

Thanks a lot, @Dzoukr!!!