Skip to content

Correct Entity.load() docs RE null #188

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,11 @@ all
optional and only required when `persistence.js` is used in
multi-session mode.
* `EntityName.load([session], [tx], id, callback)` loads an particular
object from the database by id or returns `null` if it has not been
found.
object from the database by id. The callback function is called with the found object or
`null` if it has not been found.
* `EntityName.findBy([session], [tx], property, value, callback)` searches
for a particular object based on a property value (this is assumed to
be unique), the callback function is called with the found object or
be unique). The callback function is called with the found object or
`null` if it has not been found.
* `EntityName.index([col1, col2, ..., colN], options)` creates an index on a column
of a combination of columns, for faster searching. If options.unique is true,
Expand Down