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 | 31 |
Tags
- summary
- 앵귤러 애니메이션
- 스크롤 이벤트 감지
- angular button
- scroll
- 앵귤러 모달
- Router
- route
- 아이오닉 스크롤 이벤트
- TAILWIND
- egov spring ajax 사용 예시
- angular route
- flex-1
- prisma
- modal
- mysql if
- 검색
- 모달
- 셀렉트박스 커스텀
- ApexChart
- ajax 사용 예시
- 호버
- formgroup
- Angular Router
- Ionic modal
- Oracle LISTAGG 사용 예시
- angular animation
- 스크롤 이벤트
- angular 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 |