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

Get specific items only from database #41

Closed
ToTheMoon1234 opened this issue Oct 14, 2021 · 0 comments · Fixed by #42
Closed

Get specific items only from database #41

ToTheMoon1234 opened this issue Oct 14, 2021 · 0 comments · Fixed by #42
Labels
enhancement New feature or request

Comments

@ToTheMoon1234
Copy link

ToTheMoon1234 commented Oct 14, 2021

Hey, suppose i want to get all the documents from database which contains/starts with/ ends with

  1. "xp-" in the ID: part eg { ID: 'xp-849690256945184828893455048967860274', data: 1158 }
    right now I use the .all to get all the data and use .filter to get the ones which contains "xp-" in the ID: which is a lot as the data in database is large.
    A function so I only get the documents from database that contains "xp-" in the ID: part would be helpful (not all the data in the database)

  2. Same with the data: part, that the function only gets the documents from database that contains say '59' in their data: part

Thanks

@twlite twlite added the enhancement New feature or request label Oct 18, 2021
@twlite twlite mentioned this issue Jan 19, 2022
1 task
@twlite twlite linked a pull request Jan 19, 2022 that will close this issue
1 task
@rhygg rhygg closed this as completed in #42 Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants