title: Get information from two vertices in Azure CosmosDB Graph (GREMLIN API)
body: <p><a href="https://i.stack.imgur.com/K1iQ2.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K1iQ2.jpg" alt="enter image description here"></a></p>
  
  <p>I would like to create a query wich gets information from two vertices. I have <strong>Vertex A</strong> and <strong>Vertex B</strong> and I need from <strong>Vertex A</strong> the value of property <strong>label</strong> and of properties array the value <strong>schema</strong>. From <strong>Vertex B</strong> I only would like to get the value of property <strong>name</strong>. I tried multiple queries to get the result like:</p>
  
  <pre><code>[
    {
       "label" : "anySubTypeName",
       "schema": ".....",
       "name"  : "anyTypeName"
     },
     ...
  ]
  </code></pre>
  
  <p>I was able to get properties <strong>name</strong> of each vertex but not <strong>schema</strong> with following query:</p>
  
  <pre><code>g.V().hasLabel("subtype").as("subtype")
       .outE("typeof").inV().as("type")
       .select("subtype", "type").by("id")
  ____________________
  
  Result:
  
  [
    {
      "subtype": "anySubTypeName",
      "type"   :  "anyTypeName"
    }
  ]
  </code></pre>
  
  <p>Can anyone help me that I also can get <strong>schema</strong> as part of the result?</p>