TwentyT
Twenty2mo ago
7 replies
fendle

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

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?
Was this page helpful?