Remove out-of-context comment

This commit is contained in:
Convly 2023-07-07 11:24:16 +02:00
parent 8604c21e7b
commit 0f4cd98b3f

View File

@ -39,7 +39,6 @@ const populate = traverseFactory()
return visitedPopulate.filter((item) => !isNil(item)); return visitedPopulate.filter((item) => !isNil(item));
}) })
// Transform wildcard populate to an exhaustive list of attributes to populate. // Transform wildcard populate to an exhaustive list of attributes to populate.
// Avoid populating attributes from the database that will be sanitized in the output anyway.
.intercept(isWildCardConstant, (visitor, options, _data, { recurse }) => { .intercept(isWildCardConstant, (visitor, options, _data, { recurse }) => {
const attributes = options.schema?.attributes; const attributes = options.schema?.attributes;