Skip to content

getItem database API? #431

Description

@mrbluecoat

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)?

Activity

  1. mrbluecoat commented on Aug 2, 2024

    @mrbluecoat
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions