-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
How to query object contain in field type array of pointer? #4659
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
@sonysm Why not use Parse Relations? You can then query for whatever object you want. Its easier to maintain than an Array of Pointers |
From the JS guide: "Arrays are ideal when we know that the number of objects involved in our one-to-many relationship are going to be small. Arrays will also provide some productivity benefit via the includeKey parameter." @sonysm https://docs.parseplatform.org/js/guide/#using-arrays
that should do it. |
Make sure to capitalize |
instead of hardcoding 123 in objectId, how could we keep it variable, what would be the correct syntax then? |
I guess this way:
|
Hello,
I have one question about query object
Example my data has field "students" type as array pointer of "student" class
students [
{"__type": "pointer", className: "student", "objectId": "123"},
{"__type": "pointer", className: "student", "objectId": "1234"},
]
I want get all field has student object (objectId: 123)
Anyone can help please?
sorry for my poor English
The text was updated successfully, but these errors were encountered: