Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.19 KB

File metadata and controls

41 lines (28 loc) · 1.19 KB

ResolvedReferenceInput

A parsed reference enriched with display name and path from the database. Uses extra=\"ignore\" (not \"forbid\") because SDK dicts may contain fields not yet modelled here. Adding \"forbid\" would cause runtime deserialization failures whenever the SDK adds a new field.

Properties

Name Type
refType ReferenceType
entityId string
displayName string
materializedPath string

Example

import type { ResolvedReferenceInput } from '@knowledge-stack/ksapi'

// TODO: Update the object below with actual values
const example = {
  "refType": null,
  "entityId": null,
  "displayName": null,
  "materializedPath": null,
} satisfies ResolvedReferenceInput

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as ResolvedReferenceInput
console.log(exampleParsed)

[Back to top] [Back to API list] [Back to Model list] [Back to README]