Skip to content
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

Relation fields is not retrieved #1311

Closed
aryelevin opened this issue Mar 31, 2016 · 4 comments · Fixed by #1424
Closed

Relation fields is not retrieved #1311

aryelevin opened this issue Mar 31, 2016 · 4 comments · Fixed by #1424
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@aryelevin
Copy link

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!

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"}]}]}

@drew-gross drew-gross added the type:bug Impaired feature or lacking behavior that is likely assumed label Apr 1, 2016
@drew-gross
Copy link
Contributor

Thanks for the improved bug report, I've reproduced this bug and will work on a fix.

@aryelevin
Copy link
Author

Hey @drew-gross ,
Just wonders if there is any progress with this bug? :)
Thanks in advance

@drew-gross
Copy link
Contributor

No, I haven't had a chance to work on this yet.

@aryelevin
Copy link
Author

Ok, thanks for the answer... Have a nice day...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants