Function deleteChildById

  • Delete a child object using its _id field and its parents _id.

    Type Parameters

    Parameters

    • context: Context

      the context object

    • collectionName: string

      the name of the collection

    • id: string

      the child object to remove

    • rootObjectId: string

      the parent object id

    • options: {
          condition?: CompositeCondition;
      } = {}

      options to change behaviour of DynamoDB

      • Optional condition?: CompositeCondition

        a condition expression blocking the delete operation

    Returns Promise<DocumentType | undefined>

    the deleted object (as stored in the database), or undefined if not found

    Throws

    when the collection is not found in the context

Generated using TypeDoc