Elssky commented on issue #614:
URL: 
https://github.com/apache/incubator-graphar/issues/614#issuecomment-2362981828

   > ```cypher
   > MATCH (n:Label {property: value}) RETURN n
   > ```
   ### 1. Query nodes with a specific label
   
   **Cypher:** 
   ```cypher
   MATCH (n:Label) RETURN n
   ```
   
   **Gremlin:**
   ```gremlin
   g.V().hasLabel('Label')
   ```
   
   ### 2. Query nodes with multiple labels
   
   **Cypher:**
   ```cypher
   MATCH (n:Label1:Label2) RETURN n
   ```
   
   **Gremlin:**
   ```gremlin
   g.V().hasLabel('Label1').hasLabel('Label2')
   ```
   
   ### 3. Query nodes with a specific label and property
   
   **Cypher:**
   ```cypher
   MATCH (n:Label {property: value}) RETURN n
   ```
   
   **Gremlin:**
   ```gremlin
   g.V().hasLabel('Label').has('property', value)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to