samuk190 / localbase

A Firebase-Style Database ... Offline!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Retrieve all results from DB where object value matches something?

dev-dogsname opened this issue · comments

Wondering if you can retrieve multiple entries from the db - in my testing, i'm only getting a single item.
ie:

db
      .collection('skus')
      .doc({ type: 'LONGBOARD' })
      .orderBy('sku')
      .get()
      .then((skus) => {
        console.log('skus are: ', skus);
      });

Then it returns all skus that are labeled with type "LONGBOARD"

Thanks!

hi, any luck with where clause please, can the query be done with where clause ?