Search code examples
pointerscloudparse-server

How get full objets with a pointer?


How get full objets with pointers?. I have this

ParseObject { _objCount: 4, className: 'Task', id: 'I593WXO24i' }

Update:

This is my code

             var taskQuery = new Parse.Query("Task");

             taskQuery.get(req.params.task,{
                 success: function(task){

                     console.log(task);
                 },
                 error: function(error){
                     errorCodeFor(res, "not_found", "item.task", "Task was not found");
                 }
             });

But when console.log(task).I have a pointers.I want the full object.


Solution

  • You can use the include method: https://docs.parseplatform.org/js/guide/#relational-queries

    It would be something like this:

    query.include('myPointerFieldName');