You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
select() constraint is not applied to included objects #1567
I am running this same query from parse.com and on my local parse server .
var messageQuery = new Parse.Query("Message");
messageQuery.descending("updatedAt");
messageQuery.include("channelId");
messageQuery.select("channelId");
messageQuery.select("channelId.exchange");
Channeld is pointer field to my other document.
On parse.com server this query works and return result with only exchange field and on parse-server it selects complete channelId document and prints everything.
It seems like the issue is clear at this point: the select() constraint on Parse Server only works for fields on the top level object. It seems like there's interest in replicating parse.com's select() behavior on Parse Server. If someone wants to send a PR to add this enhancement to Parse Server we can take a look.
Activity
devshop9 commentedon Apr 20, 2016
Also select works when i am not expanding any pointer fields.
hramos commentedon Apr 20, 2016
Can you include more information, such as example responses that clearly show the difference?
Please refer to this issue for an example of a great bug report.
MasaGon commentedon Jun 17, 2016
I got same issue with Parse Server, when migrating from Parse.com.
This works fine for getting whole sender fields of a message, where sender is Parse.User object.
But if I restrict select parameter to 'sender.phone' from 'sender' like this,
no sender information is acquired.
parse-server@2.2.13
Poordeveloper commentedon Jul 9, 2016
really a big issue, can only work around on cloud side now.
Ishimilated commentedon Jul 24, 2016
I have the same problem. It worked great on parse.com, but not on the parse server.
hramos commentedon Jul 25, 2016
It seems like the issue is clear at this point: the select() constraint on Parse Server only works for fields on the top level object. It seems like there's interest in replicating parse.com's select() behavior on Parse Server. If someone wants to send a PR to add this enhancement to Parse Server we can take a look.
[-]Issue with select query on parse-server[/-][+]select() constraint is not applied to included objects[/+]ossamaweb commentedon Aug 11, 2016
+1
Reproduction for #1567
Support for nested `.select()` calls (#2737)
dbloembe commentedon Aug 8, 2018
I'm still having trouble with this same issue. Was this ever addressed?
flovilmart commentedon Aug 8, 2018
@dbloembe please open a new issue with all relevant informations