A good way to do this would be to remove these fields from the matching json file that contains the field->type mappings. If a field doesn't exist in this file it shouldn't be rendered
Extension: Don't render items if their value is empty (null or empty array)
In some types we've added specific relations in order to generate filter queries for them: https://github.com/trompamusic/ce-api/blob/24270a1f4d65bd3cc34a12b8dca0b9372454b34a/src/schema/type/MusicComposition.graphql#L176-L179 These fields are useful only for graphql, and shouldn't be rendered in the jsonld.
A good way to do this would be to remove these fields from the matching json file that contains the field->type mappings. If a field doesn't exist in this file it shouldn't be rendered
Extension: Don't render items if their value is empty (null or empty array)