Quantcast
Channel: DreamFactory Forum - Latest topics
Viewing all articles
Browse latest Browse all 1524

How to query and display the mongo data

$
0
0

@ramesh_chowdary wrote:

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.{tablename}

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,

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1524

Trending Articles