getDocumentFromMutation = (mutation, mutationName) => {
    const mutationData = (mutation.result.data[mutationName] || {});
    const document = mutationData.data;
    return document;
}
Safe getter
Must returns null if the document is absent (eg in case of validation failure)
TODO: use this getter
@param {*} mutation 
@param {*} mutationName