분류 전체보기

    애니메이션 기본

    애니메이션 기본

    애니메이션 넣기 mesh 회전시키기 import * as THREE from "three"; /* 그리기 */ function draw() { // 애니메이션 추가 // mesh.rotation.y += 0.1; // 각도는 Radian을 사용, 360도는 2파이 mesh.rotation.y += THREE.MathUtils.degToRad(1); mesh.position.y += 0.01; if (mesh.position.y > 3) { mesh.position.y = 0; } renderer.render(scene, camera); // window.requestAnimationFrame(draw); renderer.setAnimati..

    Find OPtions(LessThan, MoreThan … ) , 데이터를 조회할 때 사용되는 옵션

    Find OPtions(LessThan, MoreThan … ) , 데이터를 조회할 때 사용되는 옵션

    typeORM의 operator 활용https://orkhan.gitbook.io/typeorm/docs/find-optionsTypeORM에서 데이터베이스에서 데이터를 조회할 때 사용되는 옵션들을 정의할 수 있는 객체  LessThan, 지정한 값보다 작은 값을 찾기const users = await userRepository.find({ where: { age: LessThan(30) }});// age가 30보다 작은 사용자들을 조회합니다.  LessThanOrEqual, 지정한 값보다 작거나 같은 값을 찾기const users = await userRepository.find({ where: { age: LessThanOrEqual(30) }});//..

    Task Scheduling

    Task Scheduling

    NestJS의 Task Scheduling원하는 time interval, 또는 정해진 시간과 날짜에 fuction을 실행할 수 있다.고정된 날짜/시간, 반복 간격 또는 지정된 간격마다 특정 메서드나 함수를 한 번 실행되도록 예약할 수 있다.  NestJS 문서Task SchedulingTask scheduling allows you to schedule arbitrary code (methods/functions) to execute at a fixed date/time, at recurring intervals, or once after a specified interval. In the Linux world, this is often handled by packages like cron at the..

    relationship 옵션 ( eager relationships, Lazy relations)

    relationship 옵션 ( eager relationships, Lazy relations)

    eager relationships@ManyToMany(type => Category, category => category.questions, {eager: true})@JoinTable()categories: Category[];Eager relation은 데이터베이스에서 엔티티를 로드할 때마다 자동으로 relation 필드들을 로드한다.너무 많은걸 load 하면 서버 부하가 심하므로 주의해야 한다.// 나쁜예 - 많은 정보를 load 하고 있다.subscription { cookedOrders { restaurant { name } total customer { email restaurants { owner { email..