odoql-json
v1.0.1
Published
Json querying for odoql
Downloads
2
Readme
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' } }
});