Page Contents
Home > @loopback/context > ContextView > (constructor)
ContextView.(constructor)
Create a context view
Signature:
constructor(context: Context, filter: BindingFilter, comparator?: BindingComparator | undefined, resolutionOptions?: Omit<ResolutionOptions, "session"> | undefined);
Parameters
Parameter | Type | Description |
---|---|---|
context | Context | Context object to watch |
filter | BindingFilter | Binding filter to match bindings of interest |
comparator | BindingComparator | undefined | (Optional) Comparator to sort the matched bindings |
resolutionOptions | Omit<ResolutionOptions, “session”> | undefined | (Optional) |