> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-typedoc-upgrade.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ObjectRef

> TypeScript SDK reference

Defined in: [src/weaveObject.ts:23](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveObject.ts#L23)

Represents a reference to a saved Weave object.

Generally, end users will not need to interact with this class directly.

An ObjectRef contains the project ID, object ID, and digest that uniquely identify
a saved object in Weave's storage system.

## Example

```ts twoslash theme={null}
// @noErrors
const ref = new ObjectRef('my-project', 'abc123', 'def456');
const uri = ref.uri(); // weave:///my-project/object/abc123:def456
```

## Constructors

### Constructor

> **new ObjectRef**(`projectId`, `objectId`, `digest`): `ObjectRef`

Defined in: [src/weaveObject.ts:24](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveObject.ts#L24)

#### Parameters

##### projectId

`string`

##### objectId

`string`

##### digest

`string`

#### Returns

`ObjectRef`

## Properties

### digest

> **digest**: `string`

Defined in: [src/weaveObject.ts:27](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveObject.ts#L27)

***

### objectId

> **objectId**: `string`

Defined in: [src/weaveObject.ts:26](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveObject.ts#L26)

***

### projectId

> **projectId**: `string`

Defined in: [src/weaveObject.ts:25](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveObject.ts#L25)

## Methods

### get()

> **get**(): `Promise`\<`any`>

Defined in: [src/weaveObject.ts:64](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveObject.ts#L64)

#### Returns

`Promise`\<`any`>

***

### ui\_url()

> **ui\_url**(): `string`

Defined in: [src/weaveObject.ts:59](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveObject.ts#L59)

#### Returns

`string`

***

### uri()

> **uri**(): `string`

Defined in: [src/weaveObject.ts:55](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveObject.ts#L55)

#### Returns

`string`

***

### fromUri()

> `static` **fromUri**(`uri`): `ObjectRef`

Defined in: [src/weaveObject.ts:42](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/weaveObject.ts#L42)

Creates an ObjectRef from a Weave URI string.

#### Parameters

##### uri

`string`

A Weave URI in the format: weave:///entity/project/object/name:digest

#### Returns

`ObjectRef`

A new ObjectRef instance

#### Throws

Error if the URI format is invalid or not an object ref

#### Example

```ts twoslash theme={null}
// @noErrors
const ref = ObjectRef.fromUri('weave:///my-entity/my-project/object/my-dataset:abc123');
```
