[ BUGFIX ] maxDepthOfQuery config
This commit is contained in:
parent
0cd6615803
commit
b4c9cb5e99
|
@ -1705,7 +1705,12 @@ DataAccessObject._sanitizeQuery = function(query, options) {
|
||||||
|
|
||||||
DataAccessObject._sanitizeData = function(data, options) {
|
DataAccessObject._sanitizeData = function(data, options) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
return sanitizeQueryOrData(data, options);
|
// See https://github.com/strongloop/loopback-datasource-juggler/issues/1651
|
||||||
|
var maxDepthOfQuery = (+this._getSetting('maxDepthOfQuery')) || 12;
|
||||||
|
return sanitizeQueryOrData(data,
|
||||||
|
Object.assign({
|
||||||
|
maxDepth: maxDepthOfQuery,
|
||||||
|
}, options));
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue