1.0.0 • Published 8 years ago

ml-query-builder.js v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
8 years ago

ml-query-builder.js

a lightweight MarkLogic structured query builder, offered as a browser-friendly alternative to the official marklogic client

install from npm:

npm install ml-query-builder.js
var qb = require('ml-query-builder.js')

qb.where(qb.and())
// => {query:{queries:[{and-query:{queries:[]}}]}}

A compatible subset of the official queryBuilder is provided:

API docs

Additionally, extension methods are provided to support server-side query options:

API docs

adapted from the MLQueryBuilder angular service in ml-common-ng#v1.0.1