Mongo Document Object Mapper Swift

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?