mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 11:25:17 +00:00
add permission query
This commit is contained in:
parent
a2b63463af
commit
e1159e1407
@ -23,6 +23,7 @@ module.exports = {
|
|||||||
const permissionQuery = await permissionChecker.sanitizedQuery.read(query);
|
const permissionQuery = await permissionChecker.sanitizedQuery.read(query);
|
||||||
|
|
||||||
const populate = await getService('populate-builder')(model)
|
const populate = await getService('populate-builder')(model)
|
||||||
|
.populateFromQuery(permissionQuery)
|
||||||
.populateDeep(1)
|
.populateDeep(1)
|
||||||
.countRelations({ toOne: false, toMany: true })
|
.countRelations({ toOne: false, toMany: true })
|
||||||
.build();
|
.build();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user