Hi.
I have a question and answer app. Think something similar to Quora.
3 collections:
Users
Questions
Responses
Relationships between these:
A question can have multiple responses. A given response only has one question.
A user can have multiple responses.
On the Home screen is a list of questions other users have submitted.
What I want to do if someone taps a question is
- Create a new “response” record linked to the selected question and the logged in user ONLY IF the user has not answered this question already
- Link to the question screen
it’s the first step I am having trouble with.
The conditional statement I have reads:
Current Question’s > Response’s > User’s (All)
Does not contain
Logged in User
I thought that would do it but currently it creates a new response every time, even if the user has already responded to this question. Please help!