typicaljoe / taffydb

TaffyDB - an open source JavaScript Database for your browser
http://taffydb.com
MIT License
2.21k stars 285 forks source link

Examples lack usage of get() #83

Open raheelshan opened 10 years ago

raheelshan commented 10 years ago

I have gone through all the example on taffy db. Many of the examples are missing get() usage which when i console hey are displayed as an object instead of the required searched data.

Dakine135 commented 3 years ago

Seconded

typicaljoe commented 3 years ago

I'm not following. Using .get() should return the objects from that match your search.

So people({state:"TX"}).get() should return the records (objects) from people where state is TX contained in an array.

// people({state:"TX"}).get()[0] will give you the first objects // people({state:"TX"}).get()[1] second, etc