Object:
fruits {
citrus {
lime {
id
}
}
berries {
...
}
}
Destructuring fruits to reach lime:
const { citrus: { lime } = {} } = fruits;
My understanding is that if citrus is null, the destructuring will work and the value of lime will be an empty object {}. However this is not working. Am I missing something?