If we have an object profile.
$ x = Profile.all.first
#<Profile _id: 506a8bc5a788000c6300002f, _type: nil>
to fetch the child details of the object we can have
$ x._children
[#<ProfileKidsType _id: 506a8bc5a788000c6300002e, _type: "ProfileKidsType", fname: "jyothi", lname: "k ", kids_id: "KL295170", nickname: "jyoths", gender: "Female", birthdate: 2012-10-02 00:00:00 UTC, food_allergies: "No", medical_issues: "No", special_needs: "No", other_concerns: "No", organization_memberships: nil>]
so we have the child details, this can have the parent details . so
$ y= x.kids_type
$ y._parent
#<Profile _id: 506a8bc5a788000c6300002f, _type: nil>
y._parent will be the parent details of the child object
here is an example:
#<Profile _id: 506a8bc5a788000c6300002f, _type: nil>
to fetch the child details of the object we can have
$ x._children
[#<ProfileKidsType _id: 506a8bc5a788000c6300002e, _type: "ProfileKidsType", fname: "jyothi", lname: "k ", kids_id: "KL295170", nickname: "jyoths", gender: "Female", birthdate: 2012-10-02 00:00:00 UTC, food_allergies: "No", medical_issues: "No", special_needs: "No", other_concerns: "No", organization_memberships: nil>]
so we have the child details, this can have the parent details . so
$ y= x.kids_type
$ y._parent
#<Profile _id: 506a8bc5a788000c6300002f, _type: nil>
y._parent will be the parent details of the child object
here is an example: