mergePermissionQuery
Function: mergePermissionQuery()
mergePermissionQuery(
query,permission?):string
Defined in: packages/core/src/models/permissions.ts:358
AND the model's permission query into a client query
Both sides are parsed and combined on the expression tree, so a client OR keeps its precedence. The client
ORDER BY, LIMIT and OFFSET are kept.
Parameters
query
string
the client query
permission?
the permission query, if any
Returns
string
the query to run
Throws
SyntaxError if the client query is invalid