FindManyOptions
2026년 5월 17일
문법
TypeScriptexport interface FindManyOptions<Entity = any> extends FindOneOptions<Entity>{ skip?: number take?: number }
skip
- 정렬 후 스킵할 데이터의 갯수를 정할 수 있다.
take
- 처음 몇개의 데이터를 불러올지 정할 수 있다.
예시
TypeScriptconst users = await userRepository.find({ skip: 10, take: 5, })