Repository navigation
Relation fields is not retrieved #1311
Description
Check out this issue for an ideal bug report. The closer your issue report is to that one, the more likely we are to be able to help, and the more likely we will be to fix the issue quickly!
For implementation related questions or technical support, please refer to the Stack Overflow and Server Fault communities.
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!
- [V] You've met the prerequisites.
- [V] You're running the latest version of Parse Server.
- [V] You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
parse-server v2.2.4
Steps to reproduce
Get any objects which have a relation field.
Look at the response, No any data about the relation field.
Logs/Trace
In parse.com response you'll get:
{"results":[{"address_address":"Beit Yosef 12","address_city":"Bnei Brak","address_country":"US","address_state":"IL","address_zip":"5125414","bought_cards":{"__type":"Relation","className":"Card"},"cards_being_used":[],"coupons":{"__type":"Relation","className":"Coupon"},"createdAt":"2015-08-24T22:37:25.673Z","credit_balance":{"__type":"Relation","className":"CustomerCredit"},"cards":[{"__type":"Pointer","className":"Card","objectId":"2ukxDfhkFs"},{"__type":"Pointer","className":"Card","objectId":"kRNHM07EG3"},{"__type":"Pointer","className":"Card","objectId":"MbTb2x9cD9"},{"__type":"Pointer","className":"Card","objectId":"bLAcW2EBQQ"},{"__type":"Pointer","className":"Card","objectId":"9ygwYjgzhb"},{"__type":"Pointer","className":"Card","objectId":"zfzm3J6L3B"},{"__type":"Pointer","className":"Card","objectId":"fHAY1NbMZ3"},{"__type":"Pointer","className":"Card","objectId":"ao5jFTj0HD"},{"__type":"Pointer","className":"Card","objectId":"zA7LCzA2u3"}],"email":"bla@me.com","expired_coupons":{"__type":"Relation","className":"Coupon"},"first_name":"Bla","last_name":"BLABLA","objectId":"UvDsAFAJKC","personal_id":"XXXXXX","sessionToken":"r:tE7YMdktivyt3dChvs4thhi3i","updatedAt":"2016-02-16T22:15:55.935Z","username":"xxxxxxx"}]}
But in parse-server you'll get:
{"results":[{"objectId":"UvDsAFAJKC","email":"bla@me.com","createdAt":"2015-08-24T22:37:25.673Z","updatedAt":"2016-03-28T07:14:14.932Z","username":"xxxxxxx","cards_being_used":[],"personal_id":"XXXXXX","address_country":"US","address_address":"Beit Yosef 12","address_state":"IL","address_city":"Bnei Brak","address_zip":"5125414","first_name":"Bla","last_name":"BLABLA","cards":[{"__type":"Pointer","className":"Card","objectId":"SLSzaswHb0"},{"__type":"Pointer","className":"Card","objectId":"7sDoL0QYS3"},{"__type":"Pointer","className":"Card","objectId":"eCD5oao8PW"},{"__type":"Pointer","className":"Card","objectId":"qOWOzLLajG"},{"__type":"Pointer","className":"Card","objectId":"fcoETmZ8OQ"},{"__type":"Pointer","className":"Card","objectId":"zAwSMpZFHl"},{"__type":"Pointer","className":"Card","objectId":"DGNQFpaeTN"}]}]}
Activity
drew-gross commentedon Apr 1, 2016
Thanks for the improved bug report, I've reproduced this bug and will work on a fix.
aryelevin commentedon Apr 5, 2016
Hey @drew-gross ,
Just wonders if there is any progress with this bug? :)
Thanks in advance
drew-gross commentedon Apr 5, 2016
No, I haven't had a chance to work on this yet.
aryelevin commentedon Apr 5, 2016
Ok, thanks for the answer... Have a nice day...