persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
The README is incorrect regarding the return value of Entity.load() / EntityName.load().
The function doesn't return null in any case. Instead (like Entity.findBy()), if the object is not found it executes the callback function with null as input.
The
README
is incorrect regarding the return value ofEntity.load()
/EntityName.load()
.The function doesn't return
null
in any case. Instead (likeEntity.findBy()
), if the object is not found it executes the callback function withnull
as input.