odoql-json

1.0.1 • Public • Published

OdoQL

Note: This library has been made obsolete by the new version of OdoQL

JSON querying for OdoQL

[
    {
        "name": "Microsoft",
        "address": "1 Microsoft Way"
    },
    {
        "name": "Apple",
        "address": "1 Infinite Loop"
    },
    {
        "name": "Tesla",
        "address": "3500 Deer Creek Road"
    },
    {
        "name": "Google",
        "address": "1600 Amphitheatre Parkway"
    }
]
var ql = require('odoql');
var jsonstore = require('odoql-json/store');
var stores = {
    organisations: jsonstore require './organisations'
};
ql.execute({
    org: ql.query('organisations', { filter: name: 'Apple' }, { address: true })
}, stores, function(err, results) {
    console.log(results);
    // { org: { address: '1 Infinite Loop' } }
});

Readme

Keywords

Package Sidebar

Install

npm i odoql-json

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • ajnisbet
  • ascendzor
  • tcoats
  • tornadot-tim