Updated, response to suggested answer provided, awaiting response before bounty award.
Using Parse.com and JavaScript SDK.
I appear unable to solve this, so will put it out to bounty. For the bounty I'd like a code example/solution that solve the problem and that I can learn from.
The below code saves an object to the "mybadges" class. I'd like to have either a pointer or relation in the "FriendRequest" class connected to the mybadges class. Meaning that when I click on the pointer or relation in "FriendRequests" it returns all of the objects uploaded into the myBadges class. I then want to be able to access this data via a query.
Using Parse.com and JavaScript SDK.
Parse.initialize("xxx", "xxx");
var user = Parse.User.current();
var MyBadges = Parse.Object.extend("myBadges");
var userbadges = new MyBadges();
var Friends = Parse.Object.extend("FriendRequest");
var friends = new Friends();
//var Badges = Parse.Object.extend("myBadges");
//var Badges = Parse.Object.extend("myBadges");
$(document).ready(function () {
$("#send").click(function () {
var badgeselected = $('#badgeselect .go').attr("src");
userbadges.set("BadgeName", badgeselected);
userbadges.set("uploadedBy", user);
//friends.set("status");
//friends.save();
userbadges.save(null, {
success: function (results) {
// The object was saved successfully.
friends.relation('Friends').add(userbadges);
//friends.save();
console.log(user);
//location.reload();
},
error: function (contact, error) {
// The save failed.
// error is a Parse.Error with an error code and description.
alert("Error: " + error.code + " " + error.message);
}
});
});
});
$(document).ready(function() {
$('.go').css('cursor', 'pointer');
$('.go').click(function(e) { // Button which will activate our modal
$(this).width(100).height(100).appendTo('#badgeselect');
$('#modal').reveal({ // The item which will be opened with reveal
animation: 'fade', // fade, fadeAndPop, none
animationspeed: 600, // how fast animtions are
closeonbackgroundclick: true, // if you click background will modal close?
dismissmodalclass: 'close' // the class of a button or element that will close an open modal
});
return false;
});
});

