Parse relation query

After successfully adding an object to a Parse.Relation using

1 this.topic.relation("friend").add(email);

I'm getting Parse.Object._getSubclass requires a string argument on line 1 below

1 renderAllFriends: function(collection, filter) {
2   this.topic.relation("friend").query().find({
3     success:function(emails) {
4       this.$("#friends-list").html("");
5       emails.each(this.renderOneFriend);
6     }
7   });
8 }

Everything seems properly recorded in Mongo. One thing to note is that the Email object is a custom class with a non-mandatory user column.

Thanks for any tips on where to dig for an answer! The Parse repo was not that helpful in this regard since _getSubclass makes no exception for Parse.Relation (which is good).



There were some bugs in the early version of the parse js sdk, where the queries weren't constructed right. If you grab the latest version of the SDK which is 1.0.10, it should work.

Need Your Help

rails 3 remote form ajax for part of the form

jquery ajax ruby-on-rails-3 forms

I have a search form in my rails 3 app. This form has some dropdown menus which are used to set different search criteria. The form then makes a search for a model called "item", based on what was

Is this the right way of doing it?


I just wrote a mutable Point class that tries to follow these guidelines while using the new features of C# 6.