ml-query-builder.js

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i ml-query-builder.js

Weekly Downloads

3

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • joemfb