• Update one database record, find by id

    Type Parameters

    • T

    Parameters

    • l: undefined | Logger

      logger

    • db: Db

      Db object

    • col: string

      collection name

    • id: string

      id of record to update

    • payload: DeepPartial<T>

      that want to update

    Returns Promise<{
        id: string;
    }>

    id of record that updated

    Throws

    if record not found or error when update

Generated using TypeDoc