You can grate all the ingredients immediately in a serving plate. First layer: onion, doused with boiling water, grease with mayonnaise.
Then grate the apple and again smear with mayonnaise. Next layer 2 boiled eggs and again mayonnaise.
Grate carrots, coat with mayonnaise, cheese on top. Then repeat the layers of apple, egg and cheese with mayonnaise.