Adapting to the backend now sending relation and type as separate properties of the node.