mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 10:23:34 +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 populate = await getService('populate-builder')(model)
|
||||
.populateFromQuery(permissionQuery)
|
||||
.populateDeep(1)
|
||||
.countRelations({ toOne: false, toMany: true })
|
||||
.build();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user