User.query({where:{name:nm},andWhere:{password:pw}}).fetch()
これの戻り値が Promise オブジェクトが返ります。
(newPromise()).then(成功時の関数).catch(失敗時の関数)
みたいな
User.query({where:{name:nm},andWhere:{password:pw}}).fetch()
これの戻り値が Promise オブジェクトが返ります。
(newPromise()).then(成功時の関数).catch(失敗時の関数)
みたいな