I was trying to implement MongoDB with my Unity WebGL and everything is working fine so that I managed to insert and retrieve documents from my mongo database with no issues, so everything was perfect so far until I compiled the project and realized that my WebGL build won't communicate with my database at all! so took a look at the console and I see this error:
MissingMethodException: Default constructor not found for type MongoDB.Bson.Serialization.BsonClassMap`1[[UserAccount, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]
I have no clue what's happening, tried compiling the project for window/linux and I got the same error, then I changed API compatibility level to 4.x and it was working fine on the windows build, but not on WebGL ( API compatibility level=4.x is checked for WebGL build!)
can someone lend me a hand with that?