typeorm APIs
- Column
- Entity
- PrimaryGeneratedColumn
- createConnection
- CreateDateColumn
- ManyToOne
- OneToMany
- UpdateDateColumn
- Repository
- JoinColumn
- QueryRunner
- Connection
- MigrationInterface
- getRepository
- getConnection
- BaseEntity
- OneToOne
- JoinTable
- PrimaryColumn
- Index
- ManyToMany
- Table
- EntityRepository
- SelectQueryBuilder
- In
- ConnectionOptions
- BeforeInsert
- Not
- getManager
- Brackets
- Unique
- TableColumn
- MoreThan
- TableForeignKey
- BeforeUpdate
- IsNull
- EntityManager
- ObjectType
- ObjectIdColumn
- RelationId
- getCustomRepository
- FindOneOptions
- MongoRepository
- ObjectID
- getConnectionManager
- DeleteDateColumn
- FindConditions
- MoreThanOrEqual
- getMongoRepository
- Generated
- DeepPartial
- LessThan
- ValueTransformer
- LessThanOrEqual
- FindManyOptions
- Like
- EntitySchema
- Raw
- VersionColumn
- AfterLoad
- DeleteResult
- EventSubscriber
- EntitySubscriberInterface
- InsertEvent
- createQueryBuilder
- createConnections
- getConnectionOptions
- DefaultNamingStrategy
- ObjectLiteral
- ILike
- Between
- Logger
- TreeRepository
- DataSource
- TableIndex
- WhereExpressionBuilder
- useContainer
- EntityTarget
- SaveOptions
- FindOperator
- ConnectionOptionsReader
- EntityMetadata
- RemoveEvent
- InsertResult
- UpdateEvent
- TreeChildren
- TreeParent
- DeleteQueryBuilder
- ChildEntity
- WhereExpression
- ViewEntity
- getMetadataArgsStorage
- OrderByCondition
- AfterInsert
- AfterUpdate
- BeforeRemove
- Timestamp
- QueryFailedError
- UpdateResult
- Equal
- UpdateQueryBuilder
- ColumnType
- ColumnOptions
- InstanceChecker
- DataSourceOptions
Other Related APIs
typeorm#UpdateQueryBuilder TypeScript Examples
The following examples show how to use
typeorm#UpdateQueryBuilder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TypeOrmPostRepositoryAdapter.ts From typescript-clean-architecture with MIT License | 6 votes |
public async updatePosts(values: {imageId?: Nullable<string>}, by: {imageId?: string}, options: RepositoryUpdateManyOptions = {}): Promise<void> {
type ValuesType = {imageId?: string};
const query: UpdateQueryBuilder<TypeOrmPost> = this
.createQueryBuilder(this.postAlias)
.update(TypeOrmPost)
.set(values as ValuesType)
.where(by);
if (!options.includeRemoved) {
query.andWhere(this.excludeRemovedPostClause);
}
await query.execute();
}