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

getItem database API? #431

Open
mrbluecoat opened this issue Aug 1, 2024 · 1 comment
Open

getItem database API? #431

mrbluecoat opened this issue Aug 1, 2024 · 1 comment

Comments

@mrbluecoat
Copy link

Sorry if this is obvious, but https://userbase.com/docs/sdk/ shows API calls for insertItem, updateItem, and deleteItem. How do you get an item from the database (i.e. read a value)?

@mrbluecoat
Copy link
Author

From the example, it appears you don't retrieve a single value from the database but rather openDatabase to retrieve all values as an array then use app logic to find the desired item within the array and use it. Example: https://github.com/smallbets/userbase-samples/blob/master/ugliest-todo-electron/index.html#L149

Seems a bit excessive for a database (since getting a single value is expected functionality), or am I missing something?

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

1 participant