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 Context object
bindingFilter BindingFilter A function to match bindings
session ResolutionSession (Optional) Resolution session

Returns:

Getter<T[]>