code in mapping
Hi,
the code I tried to use is my effort to implement this service, I got from the end of this post https://getsatisfaction.com/apperyio/...
can anyone tell me whats wrong?
Hi Michael,
In the 5th line, you have a new line (underlined with red). Please remove it.
OK Katya,
I removed the line and tested in browser, I it returns all items in the db and not what is select with selects,
in this screenshot I have 3 bedroom selected but when u look at the response in console
it has returned the two only properties in the db
and not only the three bedroom property
if theres anything else you would like me to show please ask
thx
any news here folks
Michael,
Sorry, still nothing. Working on it.
OK Evgene,
just in case its required the apps name is Easilets and is shared, db ID 539c2337e4b0b74f1eb9adb3, also called easilets
Katya suggested removing this code, I dont see how it could work without the code or something similar
this is the code that threw error as ss above
return '{"$and": [{"locationSelect": "'+locationSelect+'"},{"bedroomSelect": "'+bedroomSelect'"},{"priceSelect": "'+priceSelect'"},{"professionSelect": "'+professionSelect'"}]}';
Michael,
You have error. You've missed + after bedroomSelect, priceSelect и professionSelect. Should be like this:
codereturn '{"$and": [{"locationSelect": "'+locationSelect+'"},{"bedroomSelect": "'+bedroomSelect+'"},{"priceSelect": "'+priceSelect+'"},{"professionSelect": "'+professionSelect+'"}]}';/code
any news, im late as usual!