0

I have a somewhat complex query operation I need to figure out. I have 2 'classes': iv and iv_users.

Within the iv class is a pointer that points to an entry in iv_users. Within iv_users is a string called iv_name.

WIth the function I have written below, it retrieves the basic data of the iv class... listing all the pointers and pointer id's. How do I also retrieve the pointer data in the above (iv_name (string) in iv_users)?

Parse.Cloud.define('iv_search', function(request, response){
var userId;
var reqSeach = request.params.iv_hook;
var iv = Parse.Object.extend("iv");

var iv_search = new Parse.Query(iv);
iv_search.equalTo("iv_hook", {
    __type: "Pointer",
    className: "JList",
    objectId: reqSeach
  });
iv_search.find({
    success:function(results){
        response.success(results);
    }, error: function(){
        response.error("Search failed");
    }
  });
});

1 Answer 1

1

In order to get the data related to that pointer, you have to include it in the query, like this:

iv_search.include('iv_hook');

Or whatever your field name is.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.