@loopback/docs
Version:
Documentation for LoopBack 4
34 lines (21 loc) • 751 B
Markdown
lang: en
title: 'API docs: context.contextview.asgetter'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.context.contextview.asgetter.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [ContextView](./context.contextview.md) > [asGetter](./context.contextview.asgetter.md)
## ContextView.asGetter() method
As a `Getter` function
<b>Signature:</b>
```typescript
asGetter(session?: ResolutionSession): Getter<T[]>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| session | <code>ResolutionSession</code> | |
<b>Returns:</b>
`Getter<T[]>`