hello sergiy,
this is saurabh.
i need your help. im having some problems regarding server code script.
i used server code script to retrieve required record from the database. for example, i have database name "MESSAGE_DB" in that i have collection named "MESSAGE" in that collection i have some fields listing below.
user1 ("string type")
user2 ("string type")
messages ("string type")
users ("array type")
for retrieving required record i used server code script as i mention abow.
now what i need to do is using users value ("which are in array form") "message" column should be access and all the messages should retrieve from the database according to the "users" value.
for example, sam send message to tom and tom message to sam they interact with each other and those messages stored in database named "MESSAGE_DB" as i mention above and user name ("sam & tom") will be stored in column named "users" ("array type"). now when i need to retrieve conversation of sam and tom then its return either all messages including other users who interacts with other users or only those messages which sent by the sam.
so, im stuck here. help me in that.
my question is, How can i retrieve conversion between sam and tom only?
Thanks,