#Get API for Morph Many Relationships is not returning the uuid of the element.

1 messages · Page 1 of 1 (latest)

harsh wadi
#

Hi Twenty Team,
I wanted to test the Morph Many Relationship on my opportunities. I called it test and assigned Company and People as possible values.

The api documentation is showing, that there should be now 2 fields on my opportunity object returned: testPeople and testCompanies.

I added now to one of my opportunities a person to this test field and called the api "get opportunity by id". But I don't see the 2 fields in the response at all. Only in the People object I can see the testID.

Is this behaviour correct?

silent rain
#

Hello @harsh wadi are you hitting the graphql api or the REST api ?

harsh wadi
#

Hi, the rest api

silent rain
#

Hey @final moon could you please have a look to this when you have some free time ?

harsh wadi
#

shall I open a defect?

final moon
harsh wadi
#

thanks a lot