직접 query를 사용하려면 getManager()를 사용함.
const entityManager = getManager();
const [data] = await entityManager.query(`
select token from biz_msg_token where id = (select max(id) from biz_msg_token);
`);
출처:
https://orkhan.gitbook.io/typeorm/docs/select-query-builder
[crud] https://choseongho93.tistory.com/302
[entity] https://yuni-q.github.io/backend/typeorm-%ED%86%BA%EC%95%84%EB%B3%B4%EA%B8%B0/
[쿼리빌더] https://dawitblog.tistory.com/176
https://itchallenger.tistory.com/230
[getManager]
https://darrengwon.tistory.com/1323