Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

getting null on DB.MYDB.find() #48

@mschipperheyn

Description

@mschipperheyn

I'm getting null when I run find() against a new database. I'm wondering if this is correct?

In line with most db management systems, results should never return null but rather, in case there is no result, an empty array.

const DB = {
   USERTABLE : Store.model("Users")
}

export function loadUser(userId){

  return dispatch => {

    return DB.USERTABLE.find()
      .then(users => { //users is null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions