Hi,
I am new to Dreamfactory.I have a mongodb database file called ‘share’ in my C:\data\db - path.
I had written the server side script to query the data from the mongodb file.But its not filter the expected result.Here my data…
{
“_id” : ObjectId(“56ceb4cb59572a040d00002a”),
“name” : “ram”,
“contactinfo” : “12345”,
“email” : “ram@test.com”
}
{
“_id” : ObjectId(“56ceb50559572a040d00002b”),
“name” : “test01”,
“contactinfo” : “6789”,
“email” : “test@test.com”,
“amount” : NumberInt(200)
}
and here my code…
[GET] mongo._table.{table_name}
var filter_data = {"filter": "name="+"test01"}; var request = platform.api.get("share/tbl_users",filter_data); throw request
Here ‘share’ is my database name and ‘tbl_users’ is my table name.
Thanks,