在 CloudBoost 中获取用户的完整 CloudFile 对象
Get Full CloudFile Object for User in CloudBoost
我已经为我的用户分配了一个名为 CloudFile 类型的 属性 图像。在数据库中似乎一切正常。但是当我打电话给 CB.CloudUser.current 时,我可以看到:
CB.CloudUser:
document: Object
_id: "id",
image: CB.CloudFile
document: Object
_id: "id",
_type: "file"
如您所见,文件 url 不存在于数据中,我该如何找回它?
谢谢
在文档中找到:https://tutorials.cloudboost.io/en/datastorage/files
Important: res Object after saving has the CloudFile Object but without Url, though it has the Id. To get the complete FileObject with Url do a fetch over it.
我会试试的!
我已经为我的用户分配了一个名为 CloudFile 类型的 属性 图像。在数据库中似乎一切正常。但是当我打电话给 CB.CloudUser.current 时,我可以看到:
CB.CloudUser:
document: Object
_id: "id",
image: CB.CloudFile
document: Object
_id: "id",
_type: "file"
如您所见,文件 url 不存在于数据中,我该如何找回它?
谢谢
在文档中找到:https://tutorials.cloudboost.io/en/datastorage/files
Important: res Object after saving has the CloudFile Object but without Url, though it has the Id. To get the complete FileObject with Url do a fetch over it.
我会试试的!