js-azurecosmos-client-repository
This package provides the base Repository class to fetch data from Azure cosmos and Azure cosmos Gremlin Database.
For more information about how to use please refer to each dependency
Dependencies
Install
npm i js-azurecosmos-client-repository
how to use
import { AzureGermlinRepository } from "js-azurecosmos-client-repository/AzureGermlinRepository"
import { AzureGermlinEntityMetaData } from "js-azurecosmos-client-repository/AzureGermlinEntityMetaData";
import { AzureCosmosEntityMetaDataContext } from "js-azurecosmos-client-repository/AzureCosmosEntityMetaDataContext";
import { Todo } from '@/src/models/Todo';
export class TodoRepository extends AzureGermlinRepository<Todo> {
constructor() {
super(Todo, new AzureGermlinEntityMetaData(new AzureCosmosEntityMetaDataContext("<dbname>","<col>","Todo")));
}
}