3

I have a messaging system in Parse, a Message class and a User class. Each Message has a relation called senders to multiple users.

How do I query for all messages for a single user?

1 Answer 1

4

This query should give the expected result:

var query = new Parse.Query('Message');
query.equalTo('senders', user);
Sign up to request clarification or add additional context in comments.

2 Comments

I don't understand. The senders field should be a relation, and the docs for PFQuery doesn't specify this behavior...
I use this request in cloud code, I don't know how PFQuery works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.