Skip to content

Run custom query directly from MongoDB but return results through parse-server #192

Closed
@5amfung

Description

@5amfung

I need to run some complex queries (with aggregate functions and etc) which are not supported by the SDK. Perhaps I could construct my own query and send the query to mongo db directly from the cloud code using MongoClient. Once I get the results back, I want to transform them to Parse.Object and return them to the js client.

Is the following the right place to start with? Is it as simple as iterating the results and calling untransformObject()? Is there anything hidden that I'm not aware of that this approach would unlikely to work?

https://github.com/ParsePlatform/parse-server/blob/master/ExportAdapter.js#L580-L586

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions