webcss / angular-indexedDB

An angularjs serviceprovider to utilize indexedDB with angular
149 stars 99 forks source link

Query compilation error #32

Open SkyQuant opened 10 years ago

SkyQuant commented 10 years ago

In my Chrome I've got an error with this code var myQuery = $indexedDB.queryBuilder().$index('age_idx').$gt(40).$asc.compile(); but without .$asc snipped it works ok. Where I get to know more knowledge about correct query composing?

webcss commented 10 years ago

You've probably missed the brackets with $asc(), which takes a single boolean parameter indicating whether or not to include only unique values. Am 25.06.2014 14:19 schrieb "SkyQuant" notifications@github.com:

In my Chrome I've got an error with this code var myQuery = $indexedDB.queryBuilder().$index('age_idx').$gt(40).$asc.compile(); but without .$asc snipped it works ok. Where I get to know more knowledge about correct query composing?

— Reply to this email directly or view it on GitHub https://github.com/webcss/angular-indexedDB/issues/32.

SkyQuant commented 10 years ago

Yes, it's true. Where I can read more about queries building?