opencypher / cypher-for-gremlin

Cypher for Gremlin adds Cypher support to any Gremlin graph database.
Apache License 2.0
359 stars 48 forks source link

addVertex for CosmosDB flavor doesn't work without return #314

Closed crichey closed 5 years ago

crichey commented 5 years ago

This follwoing cypher translates as shown and does not create a vertex:

create (n:bob {name:'awesome'}) return n becomes g.addV('bob').as('n').property(single, 'name', 'awesome').select('n').project('n').by(__.valueMap(true)) and this DOES create the vertex.

However, the following does not create a vertex: create (n:bob {name:'awesome'}) translates to g.addV('bob').property(single, 'name', 'awesome').barrier().limit(0)

dwitry commented 5 years ago

Hello @crichey,

thank you for reporting this. This is related to latest changes in Cosmos DB. We will need to find better translation for Cypher queries that return no results in Cosmos DB.