@ubw/mediatum-query-builder
v0.2.0
Published
Convenience query builder for the RESTful mediaTUM API
Downloads
4
Maintainers
Readme
mediatum-query-builder
Convenience query builder for the RESTful mediaTUM API
Install
$ npm install @ubw/mediatum-query-builder
Usage
const {raw, attributeMatch, and, or} = require('@ubw/mediatum-query-builder');
and(
attributeMatch('author.surname', 'Dietrich'),
attributeMatch('origin', 'Mathematik')
)
//=> '(author.surname="Dietrich") AND (origin="Mathematik")'
Related
- mediaTUM - Medienserver
- mediaTUM Core
- @ubw/mediatum-rest-client - Convenience wrapper around the RESTful mediaTUM API
License
MIT © Michael Mayer