Resolving "KinveyRefs" (and creating relational data from the server)
D
Dave Ackerman
started a topic
almost 7 years ago
Little background:
Our app allows users to collaborate on an entity. We're adding users into the "r" and "w" for _acl's, which seems to work. We have associated "topics" which users can upload files (using KinveyFile).
As one user, I can successfully upload and associate a file to an entity. It seems that as the other user in this scenario, when I refresh my page and re-query for the files, the file that was uploaded by the other user is not being resolved properly and returns as a regular "KinveyFile".
The 2nd part of my question involved creating relational data from custom BL, but it seems like that can be accomplished by simply embedding "KinveyRef"'s manually:
Dave Ackerman
Our app allows users to collaborate on an entity. We're adding users into the "r" and "w" for _acl's, which seems to work. We have associated "topics" which users can upload files (using KinveyFile).
As one user, I can successfully upload and associate a file to an entity. It seems that as the other user in this scenario, when I refresh my page and re-query for the files, the file that was uploaded by the other user is not being resolved properly and returns as a regular "KinveyFile".
See response in the "files" here:
https://gist.github.com/dmackerman/1a138889073ff581ff9d#file-response-json-L37-L40
Any ideas on why it's not resolving properly for the other user? As a single user executing the same workflow, the files resolve properly.