Overpass: Getting all ways and nodes of a relation

Hi there,

for technical reasons I need to extend such a query

[out:json][timeout:25];(relation(222103););out;

so that ot returns not only the relation itself, but also each node and way of a relation separately, as well as all member nodes of the relations ways.

This one returns all relation ways separately:

[out:json][timeout:25];(relation(222103);way(r);node(w););out; 

This one returns all relation nodes separately:

[out:json][timeout:25];(relation(222103);node(r);node(w););out; 

Ho can I combine both?

[out:json][timeout:25];(relation(222103);node(r);way(r);node(w););out; 

does not work, unfortunately. Or am I missing something?

Thank you!

Kind regards
joschi81

Maybe try:

[out:json];(relation(222103);>;);out;

Thank you, that worked!