node-cosmos
Version:
A light weight azure cosmosdb client aiming at ease of use for creating REST API. Supports json filter, sort and offset/limit
20 lines (17 loc) • 401 B
text/typescript
/**
* A class represent a container for cosmosdb/mongodb
*/
export class CosmosContainer {
/**
* The name of the container/collection
*/
name = "";
/**
* The real container instance of cosmosdb/mongodb
*/
container: unknown = null;
constructor(name: string, container: unknown = null) {
this.name = name;
this.container = container;
}
}