[SERVER-55022] UnhandledPromiseRejectionWarning: MongoError: FieldPath field names may not start with '$'. Created: 07/Mar/21  Updated: 06/Dec/22  Resolved: 10/Mar/21

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: sharath gk Assignee: Backlog - Triage Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Triage
Participants:

 Description   

Post.search = function (searchTerm) {
    return new Promise(function (resolve, reject) {

        if (typeof (searchTerm) == "string") {
            let posts = Post.reusablePostQuery(
                [
                    { $match: { $text: 

{ $search: searchTerm}

 } },
                    { $sort: { score: 

{ $meta: "textScore" }

 } },
                ]
            )

            resolve(posts)

        }

        else 

{             reject()         }

    })

}
 
I am getting error i am not able to retrieve the data from mongoDB Atlas



 Comments   
Comment by Eric Sedor [ 10/Mar/21 ]

Hi Sharath, just to add to what Dima said, you could also ask our community for help by posting on the MongoDB Developer Community Forums. If the discussion there leads you to suspect a bug in the MongoDB server, then we'd want to discuss here in the SERVER project. I'm going to close this ticket for now.

Gratefully,
Eric

Comment by Dmitry Agranat [ 08/Mar/21 ]

Hi sharath.gk12@gmail.com,

The SERVER project is for bugs and feature suggestions for the MongoDB server. To inform our Atlas team of issues you are having or feature requests you'd like to suggest, please reach out to the Atlas support team via Intercom. You can do this by clicking the round green button at the bottom right of the cluster view page in Atlas.

Thanks,
Dima

Generated at Thu Feb 08 05:35:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.