Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 옵저버블
- ajax 사용 예시
- scroll
- route
- 검색
- ApexChart
- 호버
- 스크롤 이벤트
- angular animation
- TAILWIND
- 앵귤러 애니메이션
- flex-1
- Angular Router
- angular route
- angular modal
- summary
- mysql if
- egov spring ajax 사용 예시
- angular button
- prisma
- Router
- 모달
- formgroup
- 셀렉트박스 커스텀
- Ionic modal
- 스크롤 이벤트 감지
- Oracle LISTAGG 사용 예시
- modal
- 앵귤러 모달
- 아이오닉 스크롤 이벤트
Archives
- Today
- Total
깜놀하는 해므찌로
Prisma in / TypeScript Set 중복 제거 예시 본문
반응형
SMALL
const uniqueEntities = Array.from(
new Set(entities.map((entity) => entity.user.id))
);
const uniqueUsers = await this.prismaService.user.findMany({
where: {
id: {
in: uniqueEntities,
},
},
});
반응형
LIST
'IT' 카테고리의 다른 글
Angular navigation routing instanceof 활용 예시 (0) | 2023.08.30 |
---|---|
Typescript Angular Row / pageNo / pageNumber / pagination 함수 예시 (0) | 2023.08.29 |
Prisma Craete Log service search query / 쌓는 방식 로그 (0) | 2023.08.29 |
Prisma Log Tx Transaction control 프리즈마 로그 트랜잭션 핸들링 예시 (0) | 2023.08.28 |
Prisma include 작성자 사용자 정보 함께 조회 (0) | 2023.08.25 |