This is where D2 really begins to shine. The language makes it very easy to declare shapes that contain other shapes, a commonly found pattern in software architecture diagrams.
You can avoid repeating containers by creating nested maps.
There are two ways to give labels to connections.
- Explicit with the reserved keyword