Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ScopeOptions

Scope Options for Model.scope

Hierarchy

  • ScopeOptions

Index

Properties

Properties

method: string | readonly [string, unknown]

The scope(s) to apply. Scopes can either be passed as consecutive arguments, or as an array of arguments. To apply simple scopes and scope functions with no arguments, pass them as strings. For scope function, pass an object, with a method property. The value can either be a string, if the method does not take any arguments, or an array, where the first element is the name of the method, and consecutive elements are arguments to that method. Pass null to remove all scopes, including the default.

Generated using TypeDoc