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

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

Open
mschipperheyn opened this issue May 14, 2016 · 0 comments
Open

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

mschipperheyn opened this issue May 14, 2016 · 0 comments

Comments

@mschipperheyn
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant