kuery

    0.5.1 • Public • Published

    kuery

    Simple Mongo-like queries with lo-dash, at the moment the operators are very limited...

    var collection =  [
    	{id:1, name:'Andreas',address:{street:'Bellmansgatan'}},
    	{id:2, name:'Sven'},
    	{id:3, name:'Christian'},
    	{id:4, name:'Emil'},
    ];
    
    		var q = new Kuery({id:{$in:[1,2]}});
    		q.find(collection).length.should.equal(2);
    		
    		var q = new Kuery({"address.street":"Bellmansgatan"});
    		q.find(collection).length.should.equal(1);

    Keywords

    none

    Install

    npm i kuery

    DownloadsWeekly Downloads

    100

    Version

    0.5.1

    License

    ISC

    Unpacked Size

    23.6 kB

    Total Files

    13

    Last publish

    Collaborators

    • sprawl
    • surikat