js-azurecosmos-client-repository
v1.0.2
Published
This package provides the base Repository class to fetch data from Azure cosmos and Azure cosmos Gremlin Database.
Downloads
5
Readme
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
- js-frontend-repository
- react-native-azure-cosmos
- react-native-azure-cosmos-gremlin
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")));
}
}