-
-
Notifications
You must be signed in to change notification settings - Fork 207
.includeObject in queryBuilder doesn't seem to be including object (not just in appearance due to toString method)? #644
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
The it's just visual. Data has been returned, it's just visual. |
If data had been returned, wouldn't it show up when I try to access it, e.g. like in this line When I inspect the object in the debugger, as suggested in the #420 comments you linked, I see this:
No other data besides that^ appears in the question ParseObject. A screenshot: |
Your You must put the name of the QueryBuilder queryBuilder = QueryBuilder<Note>(Note())
..whereEqualTo('objectId', '23irEkFVlN')
..includeObject(['question']); |
Goodness me! No idea how I didn't notice from the examples I was referencing that I was misusing that. I think maybe the variable name 'objectTypes' confused me in the Working for me now perfectly. Thank you very much! |
I can see that issues like this have been opened several times, with includeObject being found to ultimately work properly in each case. I've not been able to resolve this issue using the existing answers.
I checked in debugger if object is included in results list, as suggested in #420: It seems to not be. Results list is of length 1, containing only Note object. Note object has a field with key 'question' and value ParseObject. The _objectData map of this ParseObject contains two entries, one {'classname', 'Question'} and one {'objectId', 'tjRPWAnCqf'}.
Calling get on containing object resolved #211. As far as I understand, I've done this in the question getter of Note class?
Is something wrong with my parsing of Question object via clone() in Note class question getter?
Note and Question objects created via:
Checking in database, note and question exist in form expected.
Fetching attempted via:
output of above print statements:
I would expect question.content to not return null if question object was included, given my implementation of Note's question getter?
(questionParseObject printed^ due to print statements in the Note class question getter.)
Note and Question classes:
Thank you in advance to anyone who notices and lets me know of mistakes in this implementation.
The text was updated successfully, but these errors were encountered: