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

Retrieve all results from DB where object value matches something? #25

Open
dev-dogsname opened this issue Feb 18, 2021 · 1 comment
Open

Comments

@dev-dogsname
Copy link

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!

@pradeep-here
Copy link

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

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