-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Server Triage
Post.search = function (searchTerm) {
return new Promise(function (resolve, reject) {
if (typeof (searchTerm) == "string") {
let posts = Post.reusablePostQuery(
[
{ $match: { $text:
} },
{ $sort: { score:
} },
]
)
resolve(posts)
}
else
{ reject() }})
}
I am getting error i am not able to retrieve the data from mongoDB Atlas