Open
Description
Here's the current usage:
Assume I have the classes Post
, Tags
, and PostTags
(which joins the first two).
def in_query(field, query)
query_hash = {Parse::Protocol::KEY_CLASS_NAME => query.class_name, "where" => query.where}
add_constraint(field, "$inQuery" => query_hash)
self
end
post_tags = Parse::Query.new("PostTag").tap do |q|
q.in_query("tag", Parse::Query.new("Tag").tap do |tq|
tq.eq("category", "Person")
end)
end.get
And here's what I propose:
post_tags = Parse::Query.new("PostTag").tap do |q|
q.in_query("tag") do |tag_query|
tag_query.eq("category", "Person")
end
end.get
Is this something anyone (@ericcj, @jamonholmgren) would want?