after a request to enonic, I get response null. The request it self is correct. But as it shows in enonic api (playground) enonic does not return null (or empty) on empty non-mandatory fields (enonic does not return variable at all), which causes the problem on client. Apollo (gql) get the correct data from enonic but does not pass through since there are fields missing (fields that are, as mentioned, non mandatory). Instead it returns null.
I found similar problem here on forum (Guilotine returning optional value as null). Unfortunately I could not figure out how it fixes the problem.
While checking the version on guillotine app I decided to completely uninstall it. Surprisingly my web still fetched data from XP without any problem. Is the guillotine app necessary for headless web system? If so, is there any example on how to implement it?
Can I force through config xp to return empty arrays etc. on non-mandatory fields instead of nothing?
I am currently creating somewhat universal type with content-type based on optionSet. Which will always have some empty fields (Universal type - date or day - #6 by Brozek).