I am using Nest v6.2.0 to connect to elastic search.
When I am trying to add a document of type A to an index I get a Self Referencing loop error because the object of type A has a property of type B and type B has a property of type A. Both objects of type A & B are database objects.
I can set the ReferenceLoopHandling setting to ReferenceLoopHandling.Ignore on a JsonParser and it can parse the object fine, but I can't seem to send that json string to elastic search. So how can I set the same setting on the Json Parser used by Nest? SO that I can send the object to elastic search and Nest can correctly parse the object without the self referencing loop error.
Copyright Notice:Content Author:「Conor Malcolm」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/51769409/nest-6-2-0-self-referencing-loop