While testing Apollo's graph in the browser, I came across a couple other cases that are problematic when serializing composition results, so I've updated the types to match reality.
loc can be undefined
#[serde(default)] only works if the key does not exist. Composition defines the key and sets it to undefined, so nodes should be an actual Option to represent that.
While testing Apollo's graph in the browser, I came across a couple other cases that are problematic when serializing composition results, so I've updated the types to match reality.
loc
can be undefined#[serde(default)]
only works if the key does not exist. Composition defines the key and sets it toundefined
, sonodes
should be an actualOption
to represent that.