![](/img/trans.png)
[英]*Simple* Parse Cloud Code query failure “TypeError: Cannot call method 'get' of undefined\n retrieve that info ”
[英]Parse Cloud Code: “Cannot call method '_toPointer' of null” when calling .query() on a relation
這是我努力的事情,無法找到快速答案。 最終,我意識到我沒有正確地審查Parse文檔。
問題
如果您正在閱讀此問題,可能是您的Cloud Code錯誤日志中出現以下錯誤
Result: TypeError: Cannot call method '_toPointer' of null
當您嘗試調用Parse.Relation
的.query()
方法時。
解
考慮到您可能首先錯誤地檢索關系。 我花了很Parse.Object
努力理解為什么,如果我調用Parse.Object
的.get('RELATION_KEY')
方法,我不斷得到這個錯誤。
我應該一直在調用 .relation('RELATION_KEY')
。 我知道這
是
在Parse.Object文檔中,但我看到“得到”並停止閱讀。 我的錯。
希望能幫助到你。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.