skygear-SDK-JS icon indicating copy to clipboard operation
skygear-SDK-JS copied to clipboard

[Cloud Code] Cannot access user obj from lambda

Open akiroz opened this issue 7 years ago • 1 comments

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.

akiroz avatar Apr 18 '17 10:04 akiroz

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

cheungpat avatar Apr 19 '17 01:04 cheungpat