Strapi toObject不是函数错误

问题描述

我正在尝试通过遵循以下文档在stradi中执行自定义查询 https://strapi.io/documentation/v3.x/concepts/queries.html#custom-queries

但是我一直遇到未定义toObject函数的错误

我的方法:

const result = strapi.query('balance').model.find({
          _id: "5f319bd650d74b153c8329dd",});
        console.log(result)
        const fields = result.toObject()

错误:

TypeError: result.toObject is not a function

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)