-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(create): return the created object
Change the return value of `create()` to be the newly created object, or the existing one if a unique violation was encountered. This makes more sense given that in general the number modifed would always have been 0 or 1 so it might as well give you the object if 1, or nothing if 0. BREAKING CHANGE: The return value of `create()` is no longer the number of created objects. Instead, `create()` returns the created object.
- Loading branch information
citycide
committed
Feb 3, 2017
1 parent
e707d64
commit e551bbd
Showing
2 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters