ParseLiveQuery icon indicating copy to clipboard operation
ParseLiveQuery copied to clipboard

Can the where constraint also be an Object?

Open SeloSlav opened this issue 8 years ago • 0 comments

public Builder where(String key, String value) {
            this.baseQuery.whereKey = key;
            this.baseQuery.whereValue = value;
            return this;
        }

For example, I'm looking for Message objects where the field conversationObject (Pointer<Conversation>) matches a particular object, i.e. Conservation conservation = new Conversation();

final Subscription sub = new BaseQuery.Builder("Message")
                                .where("conversationObject", conservation)
                                // .addField("field_to_be_returned")
                                .build()
                                .subscribe();

Why can't I filter by objects instead of just strings?

SeloSlav avatar Sep 15 '17 14:09 SeloSlav