Last active
August 29, 2015 14:03
-
-
Save heymichaelp/7cadc93c607894329f93 to your computer and use it in GitHub Desktop.
Query Objects: Example Implementation
This file contains hidden or 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
var CreateStudent = function(student) { | |
this.student = student | |
} | |
CreateStudent.prototype = _.extend(CreateStudent.prototype, { | |
run: function() { | |
... | |
}, | |
persist: function() { | |
return new CreateStudentQuery(this.student).run() | |
}, | |
... | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment