title: How to collect all vertex and edge properties along path, with Gremlin
body: <p>Here's a really simple query:</p>
  
  <pre><code>g.V('customerId').out().path()
  </code></pre>
  
  <p>The JSON output of this is </p>
  
  <pre><code>{  
     "requestId":"96b26c1d-d032-2004-d36e-c700bd6db2a2",
     "status":{  
        "message":"",
        "code":200,
        "attributes":{  
           "@type":"g:Map",
           "@value":[  
  
           ]
        }
     },
     "result":{  
        "data":{  
           "@type":"g:List",
           "@value":[  
              {  
                 "@type":"g:Path",
                 "@value":{  
                    "labels":{  
                       "@type":"g:List",
                       "@value":[  
                          {  
                             "@type":"g:Set",
                             "@value":[  
  
                             ]
                          },
                          {  
                             "@type":"g:Set",
                             "@value":[  
  
                             ]
                          }
                       ]
                    },
                    "objects":{  
                       "@type":"g:List",
                       "@value":[  
                          {  
                             "@type":"g:Vertex",
                             "@value":{  
                                "id":"customerId",
                                "label":"customer"
                             }
                          },
                          {  
                             "@type":"g:Vertex",
                             "@value":{  
                                "id":"e:customerIdemail@email.com",
                                "label":"email"
                             }
                          }
                       ]
                    }
                 }
              }
           ]
        },
        "meta":{  
           "@type":"g:Map",
           "@value":[  
  
           ]
        }
     }
  }
  </code></pre>
  
  <p>Now, a customer vertex also contains the property name and age. What I would like to understand, is how to (simply, if possible) form my gremlin query such that it nests of the vertex properties within the graph. Note that when I just run g.V("customerId"), the response does contain these properties.</p>