microsoft / spring-data-cosmosdb

Access data with Azure Cosmos DB
MIT License
94 stars 64 forks source link

Same Documents For Multiple Collections #560

Open amittttt opened 3 years ago

amittttt commented 3 years ago

Is this possible to use the same document for multiple collections? @Document(collection="temp")
wanted to store same document in temp, temp1, temp2 etc.

Scenario: I have one document and the same document will be inserted in the multiple collection on the basis of the condition. is there any way around to get rid of duplication of code and use the same document for inserting in multiple collection.

Tech Stack : Spring boot

codenics commented 1 year ago

Hello amit, did you find a solution to this i am facing the same challenge.