Skip to content

Commit

Permalink
Added getter methods for 'model' and 'schema'
Browse files Browse the repository at this point in the history
  • Loading branch information
Agon Bina committed Apr 22, 2014
1 parent e57124d commit 1ecd8d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ module.exports = function(modelName, schema, mongoose) {
return this;
}

// Getter methods for 'model' and 'schema'
Store.prototype.getModel = function() {
return this.model;
};

Store.prototype.getSchema = function () {
return this.schema;
};

// Helpers
var parseQuery = function(query) {
if (typeof query !== 'object')
Expand Down

0 comments on commit 1ecd8d9

Please sign in to comment.