GithubHelp home page GithubHelp logo

Comments (6)

rjlopezdev avatar rjlopezdev commented on May 21, 2024 3

Update:

I publish this package that allows transform Express req.query into TypeORM queries.
For now, doesn't allow join/nested props queries, but it will coming soon :)

If you consider interesting adding it as a nestjs/typeorm feature, I could integrate on it maybe like:

  • Writing a ORMQuery decorator, used like:
import { ORMQuery } from 'nestjs/typeorm';

@Controller('foo')
export class FooController {

  @Get()
  filter(@ORMQuery() query) {
    return this.fooService.find(query);
  }
}

from typeorm.

ivanvs avatar ivanvs commented on May 21, 2024 1

Maybe this should be a feature request in nestjs/typeorm reposiotory. TypeOrm integration is not part of this repository.

Interesting feature, by the way!

from typeorm.

xmlking avatar xmlking commented on May 21, 2024 1

@rjlopezdev please also check some similar work here https://github.com/nestjsx/crud

from typeorm.

LeandroBarral avatar LeandroBarral commented on May 21, 2024

@rjlopezdev please also check some similar work here https://github.com/nestjsx/crud

This library are so helpfull! it could be integrated sometime on the core project to garantee the support

from typeorm.

rjlopezdev avatar rjlopezdev commented on May 21, 2024

Oooops! So sorry, I didn't pay attention to this issue.
Thanks for recommendation @xmlking (I've been using that since I created the issue).

I think that nestjsx/crud is well supported & its integration is very simple.
So I think this feature should not be part of the core.

Closing... 😺

from typeorm.

julien-sarazin avatar julien-sarazin commented on May 21, 2024

I have been on this issue few weeks ago and started working on small components: https://github.com/implicity-healthcare/nest-criteria.

Far from being as complete as nestjsx/crud this library has been designed focusing only to handle querying/pagination from the controller layer to the repository layer.

from typeorm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.