> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class: RemoteViewBuilder<Expr, From>

> Not exported: an exported type refers to it.

[server](/api/modules/server).RemoteViewBuilder

Not exported: an exported type refers to it.

## Type parameters

| Name | Type |
| :- | :- |
| `Expr` | `Expr` |
| `From` | extends `string` |

## Constructors

### constructor

• **new RemoteViewBuilder**\<`Expr`, `From`>(`relation`, `from`, `read`)

#### Type parameters

| Name | Type |
| :- | :- |
| `Expr` | `Expr` |
| `From` | extends `string` |

#### Parameters

| Name | Type |
| :- | :- |
| `relation` | [`Relation`](/api/classes/server.Relation)\<`Expr`> |
| `from` | `From` |
| `read` | [`RemoteRead`](/api/modules/server#remoteread) |

## Properties

### validator

• `Readonly` **validator**: [`VAny`](/api/classes/values.VAny)\<`any`, `"required"`, `string`>

***

### virtualTableDefinition

• `Readonly` **virtualTableDefinition**: `true`

***

### remoteViewDefinition

• `Readonly` **remoteViewDefinition**: `true`

***

### expressionType

• `Readonly` **expressionType**: `Expr`

***

### identityFrom

• `Readonly` **identityFrom**: `From`

***

### expression

• `Private` `Readonly` **expression**: [`RelationExpression`](/api/modules/server#relationexpression)

***

### executor

• `Private` `Readonly` **executor**: [`RemoteExecutor`](/api/modules/server#remoteexecutor)

***

### localInputs

• `Private` `Readonly` **localInputs**: `Record`\<`string`, \{ `dataset`: `string` ; `contract`: `string`  }>

## Methods

### isLocal

▸ \*\* isLocal\*\*(): `boolean`

#### Returns

`boolean`

***

### isLocalRetained

▸ \*\* isLocalRetained\*\*(): `boolean`

#### Returns

`boolean`

***

### remoteExpression

▸ **remoteExpression**(): [`RelationExpression`](/api/modules/server#relationexpression)

#### Returns

[`RelationExpression`](/api/modules/server#relationexpression)

***

### remoteDeclaration

▸ **remoteDeclaration**(): [`RemoteViewDeclaration`](/api/modules/server#remoteviewdeclaration)

#### Returns

[`RemoteViewDeclaration`](/api/modules/server#remoteviewdeclaration)

***

### export

▸ **export**(): \{ `fileFields`: (`null` | `string`)\[]\[] ; `discovery?`: `string` ; `indexes`: \{ `indexDescriptor`: `string` ; `fields`: `string`\[]  }\[] ; `stagedDbIndexes`: `Index`\[] ; `searchIndexes`: `SearchIndex`\[] ; `stagedSearchIndexes`: `SearchIndex`\[] ; `vectorIndexes`: `VectorIndex`\[] ; `stagedVectorIndexes`: `VectorIndex`\[] ; `documentType`: [`ValidatorJSON`](/api/modules/values#validatorjson) ; `stagedDocumentType`: `undefined` | [`ValidatorJSON`](/api/modules/values#validatorjson) ; `access?`: `SerializedReadAccess` ; `governingRule?`: `SerializedGoverningRule` ; `source?`: [`SourceBinding`](/api/modules/server#sourcebinding) ; `sourceRequirement?`: [`SourceReadRequirement`](/api/modules/server#sourcereadrequirement) ; `link?`: [`LinkDefinition`](/api/modules/server#linkdefinition) ; `references?`: `Record`\<`string`, [`SerializedReference`](/api/modules/server#serializedreference)> ; `retain?`: `SerializedRetainedCustody` ; `resourceRequests?`: `SerializedResourceRequests` ; `writers?`: \{ `functions`: `string`\[]  } ; `aggregates?`: `Record`\<`string`, `SerializedAggregate`> ; `erasable?`: `true` ; `unrestricted?`: `SerializedUnrestricted` ; `spatialKeys?`: `SerializedSpatialKey`\[]  } & \{ `remoteView`: [`RemoteViewDeclaration`](/api/modules/server#remoteviewdeclaration)  }

#### Returns

\{ `fileFields`: (`null` | `string`)\[]\[] ; `discovery?`: `string` ; `indexes`: \{ `indexDescriptor`: `string` ; `fields`: `string`\[]  }\[] ; `stagedDbIndexes`: `Index`\[] ; `searchIndexes`: `SearchIndex`\[] ; `stagedSearchIndexes`: `SearchIndex`\[] ; `vectorIndexes`: `VectorIndex`\[] ; `stagedVectorIndexes`: `VectorIndex`\[] ; `documentType`: [`ValidatorJSON`](/api/modules/values#validatorjson) ; `stagedDocumentType`: `undefined` | [`ValidatorJSON`](/api/modules/values#validatorjson) ; `access?`: `SerializedReadAccess` ; `governingRule?`: `SerializedGoverningRule` ; `source?`: [`SourceBinding`](/api/modules/server#sourcebinding) ; `sourceRequirement?`: [`SourceReadRequirement`](/api/modules/server#sourcereadrequirement) ; `link?`: [`LinkDefinition`](/api/modules/server#linkdefinition) ; `references?`: `Record`\<`string`, [`SerializedReference`](/api/modules/server#serializedreference)> ; `retain?`: `SerializedRetainedCustody` ; `resourceRequests?`: `SerializedResourceRequests` ; `writers?`: \{ `functions`: `string`\[]  } ; `aggregates?`: `Record`\<`string`, `SerializedAggregate`> ; `erasable?`: `true` ; `unrestricted?`: `SerializedUnrestricted` ; `spatialKeys?`: `SerializedSpatialKey`\[]  } & \{ `remoteView`: [`RemoteViewDeclaration`](/api/modules/server#remoteviewdeclaration)  }


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.