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":"[email protected]","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":"[email protected]","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"}]}]}