Page Contents
Home > @loopback/context > createViewGetter
createViewGetter() function
Create a context view as a getter with the given filter
Signature:
export declare function createViewGetter<T = unknown>(ctx: Context, bindingFilter: BindingFilter, session?: ResolutionSession): Getter<T[]>;
Parameters
| Parameter | Type | Description |
|---|---|---|
|
ctx |
Context object | |
|
bindingFilter |
A function to match bindings | |
|
session |
(Optional) Resolution session |
Returns:
Getter<T[]>