sulu / SuluHeadlessBundle

Bundle that provides controllers and services for using Sulu as headless content management system
MIT License
45 stars 25 forks source link

ContactSelection does not return Organization #109

Open tislars opened 2 years ago

tislars commented 2 years ago

What I expected Added a contact_selection block to a Article so I can use the output like first name, last name & their organization. However, the organization isn't shown in the response.

Potential cause The partialContact group is being used in the ContactSelectionResolver whereas the fullContact will indeed return the hash of the Account in the output.

alexander-schranz commented 1 year ago

The problem is here overfetching vs underfetching. I'm not yet sure how we solve this issue, best would be to make every field configurable like it is done in pages via properties and optimize the query based on the request fields.

At current state it is still valid that you overwrite the contact_selection resolver and use your own query and serialization to get the data you want.