Creates a query to retrieve a list of moderation rules.
The queryRules()
method builds a query to retrieve a list of moderation rules and returns a RulesQueryBuilder
object.
The returned object contains the query definition, which is typically used to run the query using the find()
method.
You can refine the query by chaining RulesQueryBuilder
methods onto the query. RulesQueryBuilder
methods enable you to sort, filter, and control the results that queryRules()
returns.
The following RulesQueryBuilder
methods are supported for queryRules()
. For a full description of the Rules object, see the object returned for the items
property in RulesQueryResult
.
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() ,ne() ,in() |
_createdDate | eq() ,ne() ,exists() ,in() ,hasSome() ,lt() ,le() ,gt() ,ge() ,ascending() ,descending() |
_updatedDate | eq() ,ne() ,exists() ,in() ,hasSome() ,lt() ,le() ,gt() ,ge() ,ascending() ,descending() |
namespace | eq() ,ne() ,in() |
enabled | eq() ,ne() |
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.