Watch keynotes and sessions from MongoDB.live, our virtual developer conference.

How to Mimic the [JsonProperty(IsReference = true)] feature of NewtonSoft

We are currently migrating from RavenDB to MongoDB and are unable to find an equivalent feature of NewtonSofts [JsonProperty(IsReference = true)] .

https://www.newtonsoft.com/json/help/html/PreserveObjectReferences.htm

Does MongoDB Currently have a built in way to mimic this? If not how would i go about doing such a custom implementation myself?