How do I render both nodes and ways from queryset to map?

How might i render both the ways and nodes that are a result of this query on the map. The data is in the output but only the first node and related ways?

[timeout:900][out:json];

// Select the node by its ID
node(37770029)->.n;

// Select all ways that reference the selected node
way(bn.n)->.w;

// Include all nodes of the selected ways
(way.w; >;)->.n;

// Combine both nodes and ways into a single output statement
(.n;.w;);

out geom;