Skip to content
This repository was archived by the owner on Oct 18, 2018. It is now read-only.

odojs/odoql-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Json querying for odoql

Resources

License

Stars

Watchers

Forks

Packages

No packages published