Skip to content

Responding to a cloud function with a parse object #985

Closed
@cyboolo

Description

@cyboolo

Hello

I have a simple function to get User object:

Parse.Cloud.define("getMB", function(request, response) {
    var myId = request.params.A;
    Parse.Cloud.useMasterKey();

    var query = new Parse.Query(Parse.User);

    query.get(myId, {
    success: function(object) {

    response.success(object);    

    },
    error: function(object, error) {

    response.error(error);    

    }
    });

  });

Before I was with parse server version 2.0.0 and now I have updated to last version.

On 2.0.0 I could get all the fields for my User (more than 20).

And now, I just get this response on the client:
t {_objCount: 0, className: "_User", id: "LPoRpS4Z6P"}

I did not change my cloud code. Login is working but I have bugs after login when I want to get User object.

Could you tell me how to deal with this issue?

Environment Setup

Mac / Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions