$ open source · GPL-3.0 — need a commercial license? imqueue.com →

FindOptions.viewParams property

Values for the placeholders in a dynamic view's definition.

Signature:

viewParams?: ViewParams;

Remarks

Merged over the defaults the decorator supplied, then substituted into the view SQL before the statement runs — which is how one model can be selected from with different parameters. Values are escaped on the way in, and one reached through an include is honoured too.