You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
iwbolling
changed the title
Confusing "return all rows" instructions in Writing Queries tutorial
Confusing instructions to return all rows in Writing Queries tutorial
Jun 9, 2017
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.The text was updated successfully, but these errors were encountered: