-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Parse.Relation fetching related object data #2850
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
Check the documentation about relations here: http://parseplatform.github.io/docs/js/guide/#using-parse-relations and about the each method
|
@flovilmart can you please tell what is I am missing here: |
@haroonKhan-10p Since
|
@haroonKhan-10p if you're attempting to get the roles for a particular user this is how you should make the query: const query = new Parse.Query(Parse.Role)
query.equalTo('users', user)
const roles = await query.find(); |
http://stackoverflow.com/questions/39955488/parse-relation-fetching-related-object-data
I have a Class called commonWall and it is related to User class.
I have a column of type 'relation' to User in class commonWall named clubbedUsers.
I want to get the list of related users. What would be the appropriated code for that?
Below is my code.. but it is not working... it returns
{"_type":"Relation","className":"User"}
no object id for the relationship is returned..
The text was updated successfully, but these errors were encountered: