typicaljoe / taffydb

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

Confusing instructions to return all rows in Writing Queries tutorial #139

Open iwbolling opened 7 years ago

iwbolling commented 7 years ago

In the "writing queries" tutorial, the user is told simply calling a Taffy database will return all records. Examples: // Run a query against the DB to return all rows db();

// functional example, returns all records db(function () { return true; });

However, running either simply returns the Taffy object with a list of all its available functions: Object {extend: undefined, filter: function, order: function, limit: function, start: function…}

I did find simply using get() on the database will return all records, but this method isn't mentioned anywhere on that page.

janstieler commented 6 years ago

Hi, I had the same confusing until I found get().