node 單個表加條件查詢

export const getTeacher = query => {
  const wh = model.query(qb => {
    qb.where('isNoLecturer', '=', '1');
});

  return get(wh, { ...query });
};
相關文章
相關標籤/搜索