I have 2 problem statements with similar approach .Can I put a contains or like query in both to solve my problem in gremlin:
1) Returning vertex 'a' in the following query when the outE() (as depicted in below gremlin query) has label with contains print.
g.V().hasLabel('url').has('name','sw10707').as('a').outE('print').has('forward','states').inV().select('a')
2) Returning all the vertices as stated below which contains print in their edge labels:
g.V().hasLabel('url').has('name','sw10707').as('a').outE('print').has('forward','states').inV()
This query is not working: g.V().hasLabel('url').has('name','sw10707').as('a').outE().filter(it.name.matches('.pri.'))
An issue is already open with .net driver ( but I am not able to find similar functionality with java) : https://github.com/Azure/azure-cosmosdb-dotnet/issues/473