(
entityName: EntityName<T>,
data: EntityDictionary<T>,
options: NativeInsertUpdateOptions<T> = {},
)
| 320 | } |
| 321 | |
| 322 | async nativeInsert<T extends object>( |
| 323 | entityName: EntityName<T>, |
| 324 | data: EntityDictionary<T>, |
| 325 | options: NativeInsertUpdateOptions<T> = {}, |
| 326 | ): Promise<QueryResult<T>> { |
| 327 | this.handleVersionProperty(entityName, data); |
| 328 | data = this.renameFields(entityName, data); |
| 329 | return this.rethrow( |
| 330 | this.getConnection('write').insertOne(entityName, data, options.ctx, options.signal), |
| 331 | ) as unknown as Promise<QueryResult<T>>; |
| 332 | } |
| 333 | |
| 334 | override async nativeClone<T extends object>( |
| 335 | entityName: EntityName<T>, |
nothing calls this directly
no test coverage detected