❔ Serializing related object EF
Hello all,
I have 2 models
And I would like to include
My query is
I have googled it and found different approaches but from the examples I saw, this should be working.
Why does this happen?
I have 2 models
And I would like to include
Coordinates of City in my response however I get error JsonException: A possible object cycle was detected. This can either be due to a cycle or if the object depth is larger than the maximum allowed depth of 64My query is
I have googled it and found different approaches but from the examples I saw, this should be working.
Why does this happen?