Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get single element typeorm

const room: any = await connection
								.getRepository(Room)
								.createQueryBuilder("room")
								.where("room.id = :room_id", { room_id: id })
								.getOne();
 
PREVIOUS NEXT
Tagged: #single #element #typeorm
ADD COMMENT
Topic
Name
8+4 =