Check out example codes for "asp.net core api Self referencing loop detected for property". It will help you in understanding the concepts better.

Code Example 1

public class StaffMember
{
    public string FirstName { get; set; }
    public virtual Department Department { get; set; }
}

public class Department
{
    public string DepartmentName { get; set; }
    [JsonIgnore]
    public virtual ICollection StaffMembers { get; set; }
}

Learn ReactJs, React Native from akashmittal.com