-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Pointer disappears in query results in CloudCode #3913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Solution was to use |
The That's expected. Where did you find confusing? If it's in the docs, can you point us to where, so we can improve it? |
The behavior is confusing that with an additional query parameter the user object goes missing while before it is contained. Maybe that is a bug because without 'useMasterKey' the user object shouldn't be returned at all?
Beste Grüße
Manuel Trezza
… On 9 Jun 2017, at 13:14, Natan Rolnik ***@***.***> wrote:
The _User class is protected by ACLs, so searching for it without the correct Session Token for that user, or without the Master Key, won't return the the user object. Otherwise, anyone could get your users info...
That's expected. Where did you find confusing? If it's in the docs, can you point us to where, so we can improve it?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
You can/should pass the sessionToken from the authenticated user to run that query. |
Issue Description
When using a particular combination in a CloudCode query of
include
,greaterThan
,lessThan
,doesNotMatchKeyInQuery
the included field goes missing in the query result objects.Steps to reproduce
Create query and execute:
Expected Results
The query results should contain the "user" field with its fields because of the
include
parameter.Actual Outcome
The query results do not contain the "user" field.
However, when any of the query parameters is commented out, e.g.
doesNotMatchKeyInQuery
orgreaterThan
, then the "user" field is properly included.Environment Setup
Server
Database
The text was updated successfully, but these errors were encountered: