Mongo Document Object Mapper Swift

Does this exist for Swift? Can anybody point me in the correct direction? I’m trying to turn document(s) returned from Mongo query into class/struct objects in Swift - can’t seem to find anything online.

Hi @Arihant_Jain1, how are you querying MongoDB from your Swift application?

Screen Shot 2022-02-18 at 2.02.13 PM

Thanks for responding. Here is an example of where I am using collection.find, and passing in a query filter. I would like to turn all of these documents into an object of the following class:
Screen Shot 2022-02-18 at 2.03.20 PM

I need to be able to turn each document returned from the query into an actual object of Task(), any ideas?

Hi Kaitlin, would you mind getting back to me on how to accomplish this?