Skip to content

When creating a relationship between an existing object A and a new one B and saving B, it's also saving A for no reason #142

@AlexisBarta

Description

@AlexisBarta

So I'm creating a relationship between an existing object post and a new object myComment like so:

var post = new Post();
post.id = "1zEcyElZ80";

var myComment = new Comment();
myComment.set("parent", post);

When I'm run a mycComment.save(); the framework runs a batch trying to save post for no reason. I just want to create a relationship between myComment and post and saving myComment. Because after my CloudCode verification on Post objects throw me the error that my object attributes are empty...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions