【问题标题】:Parse Server undefined column values in query result在查询结果中解析服务器未定义的列值
【发布时间】:2019-11-01 12:52:17
【问题描述】:

我在 parse-server 中有一个类,它有 20 列。这些列中有 6 个有值,但其他列在查询结果中没有,只有这 6 个值来了。有没有办法检索其他 14 个值?我只需要这 14 个值的键

【问题讨论】:

    标签: node.js mongodb express parse-platform parse-server


    【解决方案1】:

    查询结果将仅包含为对象设置的字段,因此不,您无法通过查询对象来获取所有可用字段。如果您想要所有字段,则需要查询架构:

    const schema = new Parse.Schema('_User');
    const result = await schema.get();
    console.log(Object.keys(result.fields));
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-17
      • 2020-05-28
      • 1970-01-01
      • 1970-01-01
      • 2019-12-06
      • 2015-08-14
      相关资源
      最近更新 更多