skygear-SDK-JS
skygear-SDK-JS copied to clipboard
[Cloud Code] Cannot access user obj from lambda
Currently a lambda handler can access the requesting user's ID using the context. However, it's not possible to access the user object since we can't query user by ID in the JS SDK.
It is possible if you query using a database connection. That is not great but it is not impossible either.
User and User Profile is under revamp and I guess this issue will have to wait for the outcome of User (object) and User Profile. https://github.com/SkygearIO/features/issues/48