A service using TypeInfo to perform ORM operations with one or many DBServiceItemDriver instances.

Implements

  • TypeInfoORMAPI

Methods

  • Check which relationships exist for a list of candidate items.

    Parameters

    • relationshipItemOrigin: {
          fromTypeFieldName: string;
          fromTypeName: string;
          fromTypePrimaryFieldValue: string;
      }
      • fromTypeFieldName: string
      • fromTypeName: string
      • fromTypePrimaryFieldValue: string
    • candidateToPrimaryFieldValues: string[]

    Returns Promise<CheckRelationshipsResults>

  • Delete an existing item of the given type.

    Parameters

    • typeName: string
    • primaryFieldValue: any

    Returns Promise<boolean>

  • Delete a relationship between two items.

    Parameters

    Returns Promise<DeleteRelationshipResults>

  • Update an existing item of the given type.

    This update will always act as a patch. Use null to signify the deletion of a field. Assign values to all fields to perform a replacement.

    The item must always contain its primary field value.

    Parameters

    Returns Promise<boolean>