We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1da54c7 + cd9bc57 commit dd1396fCopy full SHA for dd1396f
src/utils/shallow-populate.utils.ts
@@ -79,15 +79,6 @@ export const assertIncludes = (includes: PopulateObject[]): void => {
79
'shallowPopulate hook: Every `include` with attribute `keyHere` or `keyThere` also needs the other attribute defined',
80
)
81
}
82
-
83
- if (
84
- include.requestPerItem &&
85
- ('keyHere' in include || 'keyThere' in include)
86
- ) {
87
- throw new Error(
88
- 'shallowPopulate hook: The attributes `keyHere` and `keyThere` are useless when you set `requestPerItem: true`. You should remove these properties',
89
- )
90
- }
91
92
93
const uniqueNameAs = _uniqBy(includes, 'nameAs')
0 commit comments