gpt4 book ai didi

ios - parse.com wherekey doesnotmatchkey in query 不过滤对象

转载 作者:行者123 更新时间:2023-11-28 09:27:29 24 4
gpt4 key购买 nike

I have Parse classes Doctor->name,clinic,address... Patients-> name,phone... Appointments-> Doctor,patient,Date

我正在尝试运行子查询以返回在特定日期没有任何预约的医生的记录

    let queryDoctor = PFQuery(className: Doctor.parseClassName())
let queryAppointment = PFQuery(className:Bookings.parseClassName())
queryDoctor.whereKey("objectId", doesNotMatchKey:"Doctor.objectId", inQuery: queryAppointment)
queryDoctor.findObjectsInBackgroundWithBlock
{
(results: [PFObject]?, error: NSError?) -> Void in
print(results)
}

但查询似乎没有考虑PFQuerywherekey 方法就返回了所有医生的记录。任何建议?

最佳答案

使用:

queryDoctor.getObjectInBackgroundWithId(etc...

希望对你有帮助

关于ios - parse.com wherekey doesnotmatchkey in query 不过滤对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34609653/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com