Skip to content

Commit

Permalink
docs: add missing ignores to sharding plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed May 18, 2017
1 parent e8c8789 commit 4bc7b3e
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions lib/plugins/sharding.js
Expand Up @@ -2,6 +2,10 @@

var utils = require('../utils');

/*!
* ignore
*/

module.exports = function shardingPlugin(schema) {
schema.post('init', function() {
storeShard.call(this);
Expand All @@ -16,6 +20,10 @@ module.exports = function shardingPlugin(schema) {
});
};

/*!
* ignore
*/

function applyWhere() {
var paths;
var len;
Expand All @@ -32,18 +40,15 @@ function applyWhere() {
}

/*!
* Stores the current values of the shard keys.
*
* ####Note:
*
* _Shard key values do not / are not allowed to change._
*
* @api private
* @method $__storeShard
* @memberOf Document
* ignore
*/

module.exports.storeShard = storeShard;

/*!
* ignore
*/

function storeShard() {
// backwards compat
var key = this.schema.options.shardKey || this.schema.options.shardkey;
Expand Down

0 comments on commit 4bc7b3e

Please sign in to comment.