weave / ObjectRef 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.Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-weave-caching.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Example
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new ObjectRef(projectId, objectId, digest): ObjectRef
Parameters
| Name | Type |
|---|---|
projectId | string |
objectId | string |
digest | string |
Returns
ObjectRef
Defined in
weaveObject.ts:26Properties
digest
• digest:string
Defined in
weaveObject.ts:29objectId
• objectId:string
Defined in
weaveObject.ts:28projectId
• projectId:string
Defined in
weaveObject.ts:27Methods
get
▸ get():Promise<any>
Returns
Promise<any>
Defined in
weaveObject.ts:66ui_url
▸ ui_url():string
Returns
string
Defined in
weaveObject.ts:61uri
▸ uri():string
Returns
string
Defined in
weaveObject.ts:57fromUri
▸ fromUri(uri): ObjectRef
Creates an ObjectRef from a Weave URI string.
Parameters
| Name | Type | Description |
|---|---|---|
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