odata-v4-typeorm icon indicating copy to clipboard operation
odata-v4-typeorm copied to clipboard

$apply for data aggregation

Open rosostolato opened this issue 4 years ago • 2 comments

Hi! First I would like to say congratulations for this project!

I did not start to use it yet because I saw that there's no implementation of OData $apply query for Data Aggregation. My wish is to migrate my project from aspnet to nestjs, but my project uses $apply with groupBy... is it on the roadmap to be implemented on the future?

http://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/cs01/odata-data-aggregation-ext-v4.0-cs01.html

rosostolato avatar Jun 02 '20 15:06 rosostolato

Great idea! I will try to find time to investigate it!

andryuha49 avatar Aug 05 '20 09:08 andryuha49

I am looking into NestJS with TypeORM as well. I rolled my own OData integration for Prisma for a demo project with some success: https://github.com/brandonmpetty/Hydra/blob/main/node-webservice/src/lib/OData2Prisma.ts

The big draw with $apply has more to do with data analytics and reporting, especially on a star-schema structured db. You may be limited on your parser, however. Other projects like this stall out because they are using a dead parser project that will never support the newer syntax.

Example that applies to you: https://github.com/jaystack/odata-v4-parser/issues/19

Good luck :)

brandonmpetty avatar Nov 28 '21 04:11 brandonmpetty