question

jubinglong-1350 avatar image
0 Votes"
jubinglong-1350 asked KalyanChanumolu-MSFT answered

Azure Cosmos db(graph) delete is not affect (ReactiveCosmosRepository)

I will use com.azure.spring.data.cosmos.repository.ReactiveCosmosRepository
I call resp.deleteById() , the method is right run, but the data in cosmosdb(graph) isn't delete

Is there anything what i miss ?


When I change the resp to com.microsoft.spring.data.gremlin.repository.GremlinRepository
the save/delete method is right run and the date is affect in database

azure-cosmos-db
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

KalyanChanumolu-MSFT avatar image
0 Votes"
KalyanChanumolu-MSFT answered

@jubinglong-1350 Thank you for reaching out.

Could you please confirm if you are using the SQL API or Gremlin API?
You can check this from Data Explorer blade on the Azure Portal.

131129-image.png

Spring Data Gremlin has been deprecated and you should switch to the TinkerPop driver. A tutorial is here
If you are using SQL API, please download latest version of the client library based on Spring Data Framework and support for reactive extensions from here


image.png (26.1 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for answer.
The link page(https://docs.microsoft.com/en-us/azure/cosmos-db/graph/create-graph-console) haved try, all command is ok.

Using spring data is for simplify the develop.


Best regards~

0 Votes 0 ·