“Typorm wo in” Code-Antworten

Typorm wo in

const posts = await manager.createQueryBuilder(Post, "post")
    .where("post.authorId IN (:...authors)", { authors: [3, 7, 9] })
    .orderBy("post.createDate")
    .getMany();
Hungry Horse

Wo in Typorm

		const getAllProjectTelmarNotNull: Projects[] = await this.projectModel
				.createQueryBuilder('projects')
				.where('projects.telemarketing_id NOTNULL')
				.andWhere('projects.latest_status = :latest_status', { latest_status: 'NEW' })
				.andWhere('projects.telemarketing_id IN (:...telemarketing_id)', { telemarketing_id: telemarketings })
				.getMany()
Restu Wahyu Saputra

Typorm wo in Beispiel

.where("id IN(:...ids)", { ids: [1,2,3] })
Restu Wahyu Saputra

Ähnliche Antworten wie “Typorm wo in”

Fragen ähnlich wie “Typorm wo in”

Weitere verwandte Antworten zu “Typorm wo in” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen