Giter Site home page Giter Site logo

Comments (4)

hjiang avatar hjiang commented on May 27, 2024

@aisk @sdjcw

from leanengine-node-sdk.

sdjcw avatar sdjcw commented on May 27, 2024

你好,因为云代码方法返回的只是普通的 JSON 字符串,而不是 AVObject 结构,所以 include 的字段默认情况下不会返回给客户端。
如果要这么做,有个变通的办法就是类似于这样做:

res.success({post: post, comment: post.get('comment')})

后续我们会开放另外一个接口,直接可以传入或者返回 AVObject 对象,这样使用会方便一些。

from leanengine-node-sdk.

filod avatar filod commented on May 27, 2024

我现在是自己 hack 了序列化/反序列化 AVObject 的功能临时撑着,希望早日出官方 api。

from leanengine-node-sdk.

sdjcw avatar sdjcw commented on May 27, 2024

v0.2.0 已经发布,支持 RPC 调用,直接返回 AVObject 对象:https://github.com/leancloud/leanengine-node-sdk/blob/master/CHANGELOG.md

等待各个 SDK 更新后即可使用。

from leanengine-node-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.