Convert a MongoDb document to ParseObject

Hello, for does some complex query we create our own queries using mongodb npm package in cloud code, and we can query and get the result, but we have problems to convert the Document in ParseObject, what do for can return this?

You can take a look here. This is the function that Parse Server uses to convert from Mongo format to Parse format. You can try a similar approach.

Hello @davimacedo, thank you for the help

1 Like