1.0.1 • Published 9 years ago

odoql-json v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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' } }
});
1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago