@resistdesign/voltra
    Preparing search index...

    Class TypeInfoORMClient

    Client implementation of the client-safe TypeInfoORMClientAPI contract.

    The configuration pointing to the Type Info ORM RouteMap.

    Implements

    Index

    Constructors

    Methods

    • Create an item of the provided type.

      Parameters

      • typeName: string

        TypeInfo type name.

      • item: TypeInfoDataItem

        Item payload to persist.

      Returns Promise<any>

      The created item result.

    • Create a relationship between items.

      Parameters

      • relationshipItem: BaseItemRelationshipInfo

        Relationship payload.

      Returns Promise<boolean>

      Whether the relationship was created.

    • Delete an item by its primary field value.

      Parameters

      • typeName: string

        TypeInfo type name.

      • primaryFieldValue: any

        Primary field value to delete.

      Returns Promise<boolean>

      Whether the delete succeeded.

    • Read an item by its primary field value.

      Parameters

      • typeName: string

        TypeInfo type name.

      • primaryFieldValue: any

        Primary field value to lookup.

      • OptionalselectedFields: string[]

      Returns Promise<TypeInfoDataItem>

      The retrieved item, if found.