Skip to content

Updating user object adds column not value #412

@dylankbuckley

Description

@dylankbuckley

Trying to update the user object. I can successfully query it, and when I call .set() if the column doesn't exist it creates it but doesn't populate it and if it does exist it doesn't set the value.

Here is code:

` var User = Parse.Object.extend("_User");

    var query = new Parse.Query(User);
    query.get(req.body.userId, {
      success: function(user) {
        // The object was retrieved successfully.
        console.log(user)
        console.log(user.id)
        user.set("hello", "world"); // hello is created but not populated with world
        user.save();
      },
      error: function(object, error) {
        // The object was not retrieved successfully.
        // error is a Parse.Error with an error code and message.
      }
    });

`

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