Open winnieyip opened 7 years ago
@winnieyip ,
1 - For now, the etags are used by the graph engine for internal purposes within the scope of a single gremlin query and not exposed to the client. We are looking into potential ways to expose etags to the client across gremlin query. But, we do not have any ETAs for that at this point in time.
2 - No, the query is not treated as a transaction. Graph engine does its best attempt to execute the gremlin query. Unfortunately, if it fails due to some reason, the client has to retry.
As of now, Graph API does not have support for transactions.
Hope this helps !! Ashwini
I see that GremlinDocumentQuery.GraphCommand has an internal cache of vertices that have etags, but they are not exposed publicly. Is there a way for me to get etags for vertices without querying for the documents again using the regular DocDB API?
Another related question is if I have a query that looks like this:
g.V().has('pet', 'llama').property('awesome', 'true');
Is it treated as a transaction?I'm using Microsoft.Azure.Graphs 0.2.4-preview and Microsoft.Azure.DocumentDB 1.17.0.