Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iwbolling opened this issue Jun 9, 2017 · 1 comment
Open

Comments

@iwbolling
Copy link

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.

@iwbolling 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
@janstieler
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants