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

MongoDB case insensitive query - limit returned fields

$
0
0

@mimu wrote:

Posting to Dreamfactory /api/v2/mongodb/_table/friends?method=GET
works perfect
Performs a case insensitve query where Name like mart or GpPartner like Mend

How can i limit the returned fields, for example i only would like to get _id and Name as Result ?

{
“filter”: {
“$or”: [
{
“Name”: {
“$regex”: “mart”,
“$options”: “i”
}
},
{
“GpPartner”: {
“$regex”: “Mend”,
“$options”: “i”
}
}
]
}

}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1523

Trending Articles