equalTo filters for join tables with pointers, on an observed query, return no results #21
Comments
The error provided by Parse is: "pointer field practice_session needs a pointer value" Despite the fact that I'm passing in an object supplied from the include filter on a previous query. |
Do you need to do a find(); on the query?
|
According to the docs, the observed queries should not be fetched prematurely. |
The issue also happens if I test with find() separately, though. The problem seems to be related to the object passed in to equalTo. This doesn't work either, though:
|
Sorry - the above code in fact does work, I mistyped the className. So this is a workaround, but it would be nice to be able to use the cloned objects returned by the observer to query a pointer field. |
I'll think of the best way to handle this without patching too much of Parse.Query under the hood.
|
That works for now - thanks! |
@andrewimm - thank you! Your snippet above works great. |
Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed. |
Thank the stars for your solution! I was losing my mind. |
It worked for me doing it like this (Parse.Object.extend):
|
They have fixed this issue. |
Thank you! |
equalTo works as expected when testing outside of React Native in a nodejs script.
However, when observing the same query in RN, no results are returned.
The text was updated successfully, but these errors were encountered: