<NME> removeRemoteMethods.js
<BEF> 'use strict'

module.exports = function (app, options) {
  var models = app.models
  //does not support.
  var isStatic = true;

  Object.keys(models).forEach(function (model) {
    ['upsert', 'exists', 'findOne', 'count', 'createChangeStream', 'updateAll'].forEach(function (method) {
      models[model].disableRemoteMethod(method, isStatic);
    });
  });
};
        'exists',
        'findOne',
        'count',
        'createChangeStream',
        'updateAll'
      ].forEach(function (method) {
        if (models[model].disableRemoteMethodByName) {
          models[model].disableRemoteMethodByName(method)
        } else if (models[model].disableRemoteMethod) {
          models[model].disableRemoteMethod(method, true)
        }
      })
    })
    options.debug(
      '`upsert`, `exists`, `findOne`, `count`, `createChangeStream` and `updateAll` disabled for all models'
    )
  }
}

<MSG> Add option to disable hiding irrelevant methods

<DFF> @@ -5,9 +5,11 @@ module.exports = function (app, options) {
   //does not support.
   var isStatic = true;
 
-  Object.keys(models).forEach(function (model) {
-    ['upsert', 'exists', 'findOne', 'count', 'createChangeStream', 'updateAll'].forEach(function (method) {
-      models[model].disableRemoteMethod(method, isStatic);
+  if (options.hideIrrelevantMethods !== false) {
+    Object.keys(models).forEach(function (model) {
+      ['upsert', 'exists', 'findOne', 'count', 'createChangeStream', 'updateAll'].forEach(function (method) {
+        models[model].disableRemoteMethod(method, isStatic);
+      });
     });
-  });
+  }
 };

Add option to disable hiding irrelevant methods