如何在whereKey条件下使用指针列(manufacturerId)的objectId?下面的尝试不起作用,总是返回0行。 如果我在whereKey上使用String类型(不是指针)的列,则查询返回正确的结果(仅包含在数组中的行)
尝试一次
Let array = ["en7fURKoqz", "Y8DAuS2ypK"]
Let query = PFQuery (className: "Posts")
Query.includeKey ("manufacturerId")
Query.whereKey ("manufacturerId", containedIn: array)
尝试两次
Let array = ["en7fURKoqz", "Y8DAuS2ypK"]
Let query = PFQuery (className: "Posts")
Query.includeKey ("manufacturerId")
Query.whereKey ("manufacturerId.objectId", containedIn: array)
此工作正常
Let array = ["en7fURKoqz", "Y8DAuS2ypK"]
Let query = PFQuery (className: "Posts")
Query.whereKey ("manufacturerIdString", containedIn: array)