js-azurecosmos-client-repository

1.0.2 • Public • Published

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")));
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i js-azurecosmos-client-repository

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

13.7 kB

Total Files

12

Last publish

Collaborators

  • blazer.road