I am unable to find how $in works. Here is my code
precode
$.ajax({
type: 'GET',
beforeSend: function(request) {
request.setRequestHeader('X-Appery-Database-Id', 'dv_id');
},
url: 'https://api.appery.io/rest/1/db/collections/questions/',
dataType: 'json',
data: {
where: '{"question": {"$in" : ["'+searchtext+'"]}}',
sort: "-_createdAt"
},
/code/pre
This brings back data. But, say the data in the collection column has:
test
this is a test
I am testing
does testing work
and you search test, it only brings back the first 'test'! $in means contains, so why is it not bringing the rest ?
Thanks