src/utils.js
/**
 * Hides the given relation from the Model remote methods.
 * @param Model - The model to process.
 * @param relation - The relation to hide.
 */
Hides the given relation from the Model remote methods.
@param Model - The model to process.
@param relation - The relation to hide.
Hides the given relation from the Model remote methods . @param Model - The model to process . @param relation - The relation to hide .
function hideRelation(Model, relation) {
	disableRemoteMethods(Model, [
		'prototype.__create__',
		'prototype.__get__',
		'prototype.__update__',
		'prototype.__destroy__',
		'prototype.__delete__',
		'prototype.__updateById__',
		'prototype.__replaceById__',
		'prototype.__destroyById__',
		'prototype.__count__',
		'prototype.__findById__',
		'prototype.__link__',
		'prototype.__unlink__',
		'prototype.__exists__',
	].map(m => m + relation));
}
function hideRelation ( Model , relation ) { disableRemoteMethods ( Model , [ 'prototype.__create__' , 'prototype.__get__' , 'prototype.__update__' , 'prototype.__destroy__' , 'prototype.__delete__' , 'prototype.__updateById__' , 'prototype.__replaceById__' , 'prototype.__destroyById__' , 'prototype.__count__' , 'prototype.__findById__' , 'prototype.__link__' , 'prototype.__unlink__' , 'prototype.__exists__' , ] . map ( m => m + relation ) ) ; }
Hides the given relation from the Model remote methods.
Hides the given relation from the Model remote methods .