A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Query of User database not functioning

I'm trying to filter the database of messages by user.

Help!

Image Image Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Query of User database not functioning

Hello Avery,

This is incorrect where parameter:

{"ping_reciever":user_id}

Please add mapping to the where paremeter instead of user_id, and add here JS:

return '{"ping_reciever":"' + value + '"}';

A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Query of User database not functioning

Where do I add the javascript

"return '{"ping_reciever":"' + value + '"}';"

?

A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Query of User database not functioning

I get the error "Value is not defined"

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Query of User database not functioning

You should add this code on the "where" parameter's mapping. E.g. from input component: http://prntscr.com/7ogj6o

A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Query of User database not functioning

Error. Still not able to find the correct query

Image Image Image

A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Query of User database not functioning

Got it, thank you

Return to “Issues”