Using CosmosDB with the ABP Framework via MongoDB API
This is an example project to show how to use Cosmos DB in an ABP application. See the article that explains this project:
https://abp.io/community/articles/using-cosmosdb-with-the-abp-framework-via-mongodb-api-x47bjeik
Comments
John Tallon 120 weeks ago
Hi there,
Is there any way that this version of this article could be updated, as the demo and code does not work when we run the db migrator.
Gets the following error
(Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: db43863e-1397-484a-a5c3-16788c009695; Reason: (Message: {"Errors":["The index path corresponding to the specified order-by item is excluded."]} ActivityId: db43863e-1397-484a-a5c3-16788c009695, Request URI: /apps/59f515ad-e858-49c8-b008-e910d2aaa706/services/18a994fe-bb98-4f08-a8a0-a493f8888f91/partitions/61f91739-5b6b-4ad1-ad43-03755cf0161a/replicas/133121451085768458s/, RequestStats: Microsoft.Azure.Cosmos.Tracing.TraceData.ClientSideRequestStatisticsTraceDatum, SDK: Windows/10.0.19041 cosmos-netstandard-sdk/3.18.0);););.'
This is on line 51 on the BookStoreDbMigrationService class.
var tenants = await _tenantRepository.GetListAsync(includeDetails: true);
Enis Necipoğlu 80 weeks ago
Hi, we've reproduced this issue in the latest ABP version, We'll try to figure it out and solve it
adrianadamiaksolutions@gmail.com 77 weeks ago
Hi Enis. Do you have any idea when it could be fixed? We have the plans to use the template and its the main blocker for us.
Ariful Islam 101 weeks ago
Where is the article? You just added a link.
Enis Necipoğlu 100 weeks ago
It seems there is an issue, you can access the article and example project with the following link:
https://github.com/abpframework/abp-samples/tree/dc803d90f7335fdc7427a26b487e5b9d95de30b0/CosmosDBSample#how-to-use-cosmos-db-in-abp