Module: js-data-documentdb

Registered as js-data-documentdb in NPM.

Details
Source
src/index.js, line 1083
Examples

npm i --save js-data-documentdb js-data documentdb

import { DocumentDBAdapter } from 'js-data-documentdb'
const adapter = new DocumentDBAdapter({
  documentOpts: {
    db: 'mydb',
    urlConnection: process.env.DOCUMENT_DB_ENDPOINT,
    auth: {
      masterKey: process.env.DOCUMENT_DB_KEY
    }
  }
})

var DocumentDBAdapter = require('js-data-documentdb').DocumentDBAdapter
var adapter = new DocumentDBAdapter({
  documentOpts: {
    db: 'mydb',
    urlConnection: process.env.DOCUMENT_DB_ENDPOINT,
    auth: {
      masterKey: process.env.DOCUMENT_DB_KEY
    }
  }
})

Members


<static> DocumentDBAdapter

Examples

import {DocumentDBAdapter} from 'js-data-documentdb'
const adapter = new DocumentDBAdapter()

var DocumentDBAdapter = require('js-data-documentdb').DocumentDBAdapter
var adapter = new DocumentDBAdapter()

<static> OPERATORS

Default predicate functions for the filtering operators. These produce the appropriate SQL and add the necessary parameters.

Details
Source
src/index.js, line 47
Properties:
Name Type Description
= Function

Equality operator.

== Function

Equality operator.

!= Function

Inequality operator.

> Function

"Greater than" operator.

>= Function

"Greater than or equal to" operator.

< Function

"Less than" operator.

<= Function

"Less than or equal to" operator.

in Function

Operator to test whether a value is found in the provided array.

notIn Function

Operator to test whether a value is NOT found in the provided array.

contains Function

Operator to test whether an array contains the provided value.

notContains Function

Operator to test whether an array does NOT contain the provided value.


<static> version

Details of the current version of the js-data-documentdb module.

Details
Type Source
Object src/index.js, line 1043
Properties:
Name Type Description
version.full String

The full semver value.

version.major Number

The major version number.

version.minor Number

The minor version number.

version.patch Number

The patch version number.

version.alpha String | Boolean

The alpha version value, otherwise false if the current version is not alpha.

version.beta String | Boolean

The beta version value, otherwise false if the current version is not beta.

Examples

import {version} from 'js-data-documentdb'
console.log(version.full)

var version = require('js-data-documentdb').version
console.log(version.full)