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

(Neusoft)龍 挙兵(Ryuu.Kixyoheyi) 121 Reputation points
2021-09-09T06:41:29.327+00:00

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
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,543 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KalyanChanumolu-MSFT 8,321 Reputation points
    2021-09-10T11:35:15.72+00:00

    @Anonymous 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