Skip to content

无法自动保存嵌套的 pointer #494

Description

@weakish

比如以下代码会出错:

Author = leancloud.Object.extend('Author')
author = Author()
author.name = "Bob"

Post = leancloud.Object.extend('Post')
post = Post()
post.set('title', 'hugry')
post.set('content', 'where to eat')
post.set('author', author)

Comment = leancloud.Object.extend('Comment')
comment = Comment()
comment.set('content', 'KFC')

comment.set('parent', post)

comment.save()

JavaScript SDK 支持保存这种嵌套的 pointer

Activity

  1. weakish commented on Jul 6, 2021

    @weakish
    ContributorAuthor

    类似地,文件也不会像 JavaScript 一样自动保存。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    nextbreaking changes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions