ctx.orm(...).findAll is not a function
Closed this issue · 2 comments
jslygljy commented
app.use(async function (ctx) {
// const raws = await .sql.select().from('yhd_fn_game').query();
console.log(ctx.orm('test'));
const products = await ctx.orm().findAll({
where: { id:6 }
});
ctx.body = products;
});
报错 ctx.orm(...).findAll is not a function
用法问题吗
helloyou2012 commented
jslygljy commented
感谢