Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ruslán González
    @ruslanguns
    @luqezman are you considering sharing your work?
    Lucas Silva
    @luqezman
    @ruslanguns what you mean? Sharing my repo?
    Ruslán González
    @ruslanguns
    yea
    Fabien Ryckoort
    @fryck
    Hi, is serialization (@Exclude()…) works with typeorm entities ? i can’t make it works :/
    Kamil Myśliwiec
    @kamilmysliwiec

    Hi NestJS community,

    We have recently moved to Discord platform: https://discord.gg/G7Qnnhy. Our Gitter channel has been deprecated and will be closed soon. Please, consider joining our new platform to stay in touch with our amazing community of developers. The reasons for this migration can be found in this GitHub issue: nestjs/nest#891

    Thank you,
    NestJS core team

    Fabien Ryckoort
    @fryck
    How can I @Exclude() field from serialization with relation entities (innerJoin()), I have a entity A wich contain a array of entity B, I excluded a field in entity B, but it appears in results
    Lucas Silva
    @luqezman
    I want middlewares inline controllers/resolvers. What a dream :D
    Fabien Ryckoort
    @fryck
    Hi, the @Type class-transformer decorator seems to be ignored in typeorn entity….
      @OneToOne(type => Partner, { nullable: true })
      @JoinColumn({ name: 'user_id' })
      @Type(() => Partner)
      partner: Partner | null;
    @Type decorator is never call !
    hellraisercenobit
    @hellraisercenobit
    it is possible to set httpAdapter after nestApplication init?
    Kamil Myśliwiec
    @kamilmysliwiec

    Hi NestJS community,

    We have recently moved to Discord platform: https://discord.gg/G7Qnnhy. Our Gitter channel has been deprecated and will be closed soon. Please, consider joining our new platform to stay in touch with our amazing community of developers. The reasons for this migration can be found in this GitHub issue: nestjs/nest#891

    Thank you,
    NestJS core team

    Joe Mizzi
    @themizzi
    Anyone know how to get the raw body instead of the parsed one?
    cravussin
    @cravussin
    Hi, I'm having problems passing multiple arguments in a GraphQL query
    It seems the @Args decorator only accepts one argument:
    export declare function Args(...pipes: (Type<PipeTransform> | PipeTransform)[]): any;
    export declare function Args(property: string, ...pipes: (Type<PipeTransform> | PipeTransform)[]): any;
    export declare function Args(options: ArgsOptions, ...pipes: (Type<PipeTransform> | PipeTransform)[]): any;
    so I can work only with the first argument of the Query in the resolver:
        @Query('rapports')
        async rapports(@Args('fromDate') fromDate: Date, toDate: Date) {
            return await this.rapportService.findBetween(fromDate, toDate);
        }
    Nouman Dilshad
    @ImNoumanDilshad
    Hi, Did anyone know how can we connect aws documentDb with nestjs
    now been able to connect using url
    Joe Mizzi
    @themizzi
    I wired up the PassportModule with GraphQL. I get into my strategy and return false. An UnauthorizedException is thrown. However, the reponse has a status of 200 and the whole exception is returned instead of being filtered. I walked through the debugger and saw it went into an ExternalExceptionHandler. How can I get this to be wrapped by the standard exception filter?
    Kamil Myśliwiec
    @kamilmysliwiec

    Hi NestJS community,

    We have recently moved to Discord platform: https://discord.gg/G7Qnnhy. Our Gitter channel has been deprecated and will be closed soon. Please, consider joining our new platform to stay in touch with our amazing community of developers. The reasons for this migration can be found in this GitHub issue: nestjs/nest#891

    Thank you,
    NestJS core team

    Kyler Johnson
    @KylerJohnson26
    I'm building a proof of concept in Nest. I have the APIs running on localhost and can hit them with Postman and get data, but I get a CORS error when I try to hit those endpoints from my angular app running locally. I tried passing {cors: false} object as the second parameter to the NestFactory.create() function in main.ts, but that didn't help. Any ideas? How can I simply disable CORS for this PoC?
    Carl Bäckström
    @carlba
    Can nestjs convert location Params to numbers?
    mkop
    @kop7
    nest.png
    any experience with nest-serverless-aws-crud ?
    Luis Vargas
    @luisvt
    @carlba yes
    @KylerJohnson26 you should use {cors: true} instead
    Carlos Felipe Agudelo Ospina
    @cfagudelo96
    Hello everyone, I have a question: What is the best way to manage the relations between entities with TypeORM? is it better to use eager relationships when the load is not too high or is it better to use lazy relations? I'm having problems dealing with the typing in lazy relations given that it must be a promise
    Brendan
    @brendan87
    Hi folks - just noticed something odd about providers. We omitted the @Injectable() decorator from a provider class and it still functions without incident. Is the @Injectable() tag required?
    Andrey
    @Insidexa

    Hi all, i use CQRS in nestjs and learn Saga pattern
    In Saga pattern say about compensation action if error in process
    How to call compensation actions with NestJS CQRS
    I want to do something with an example

    SagaBuilder saga = SagaBuilder.newSaga("trip")
            .activity("Reserve car", ReserveCarAdapter.class) 
            .compensationActivity("Cancel car", CancelCarAdapter.class) 
            .end()
            .triggerCompensationOnAnyError();

    like about example

    @kop7 please upgrade nestjs 5 to v6 or downgrade nestjsx/crud to using version 5 of nestjs
    Jemli Fathi
    @jemliF

    hello guys
    I am facing a tough day due to FindConditions/FindManyOptions in Repository.find method.
    most of the worst, I've got this error :

    [Nest] 26433 - 2019-09-06 12:37:02 [ExceptionsHandler] Maximum call stack size exceeded +3373ms
    RangeError: Maximum call stack size exceeded
    at String.split (<anonymous>)
    at Function.QueryBuilderUtils.isAliasProperty (/home/fethijemli/Documents/dev/node/nest/CIO-FORUM-BACKEND/src/query-builder/QueryBuilderUtils.ts:17:15)
    at JoinAttribute.getValue (/home/fethijemli/Documents/dev/node/nest/CIO-FORUM-BACKEND/src/query-builder/JoinAttribute.ts:143:40)
    at JoinAttribute.get [as relation] (/home/fethijemli/Documents/dev/node/nest/CIO-FORUM-BACKEND/src/query-builder/JoinAttribute.ts:162:53)
    at JoinAttribute.get [as metadata] (/home/fethijemli/Documents/dev/node/nest/CIO-FORUM-BACKEND/src/query-builder/JoinAttribute.ts:175:18)
    at SelectQueryBuilder.join (/home/fethijemli/Documents/dev/node/nest/CIO-FORUM-BACKEND/src/query-builder/SelectQueryBuilder.ts:1299:27)
    at SelectQueryBuilder.leftJoin (/home/fethijemli/Documents/dev/node/nest/CIO-FORUM-BACKEND/src/query-builder/SelectQueryBuilder.ts:284:14)
    at SelectQueryBuilder.leftJoinAndSelect (/home/fethijemli/Documents/dev/node/nest/CIO-FORUM-BACKEND/src/query-builder/SelectQueryBuilder.ts:364:14)
    at /home/fethijemli/Documents/dev/node/nest/CIO-FORUM-BACKEND/src/find-options/FindOptionsUtils.ts:246:16
    at Array.forEach (<anonymous>)

    David Hernandez
    @jdhrivas
    Can anyone provide an example of sharing modules including mongoose models across multiple nestjs app? I have 2 separate apps and both use common modules such as userModule, roleModule. I extracted these common modules into a shared folder at the same level of apps, so now I have app1/ app2/ and shared in the same directory. app1/2 need to use the mongoose models found in the shared folder, I know I can initiate a new provider and a new mongoose connection and pass the shema from above, but is there a better way? the userModule is already wire to mongoose/mongodb
    something like that?
    David Hernandez
    @jdhrivas
    Yes! I think that's a step in the right direction something. In my case, the models' folder is in the same directory level as niong-commerce-api. I'll take a look and see if I can make it work with your example.
    Thanks! @luisvt
    David Hernandez
    @jdhrivas
    @luisvt I noticed you separated your read from write operation is this cqrs pattern?
    Luis Vargas
    @luisvt
    not sure, is just a rest api
    let me check what is CQRS pattern, hahaha
    Luis Vargas
    @luisvt
    David Hernandez
    @jdhrivas
    hahaha! by the way, after looking at your example I was able to separate my models. Thanks
    Salvatore Iovene
    @siovene
    Hello. I'm new to nestjs. I'm starting a project and using the @Crud module. When calling the POST API too create an entity that has a "createdBy" field, I want that field to have the id of the user who performed the call. That id is in the JWT token that's available in the request object. I can I pass that down to my entity?
    Eden Corbin
    @edencorbin
    Hey were having an interesting issue, with microservices and redis, it appears if make numerous requests to a microservice without any delay we do not get all the responses back to the requesting microservice.
    adding a timeout they all arrive.
    Ian
    @irackley-mc

    For Nestjs integration with NgUniversal, is there an easy way to override specific routes so they wont be SSR? For example, in a basic express app with NgUniversal, you can have all your routes render with SSR

    app.get('*', (req, res) => res.render("index", {
          req
        });
    )

    but you can override a specific route to not use, say by just sending the index.html down

    app.get('/specific-route/**', (req, res) => {
      res.sendFile(join(DIST_FOLDER, 'browser', 'index.html'));
    });

    What is the best/proper way of achieving this with a nestjs/nguniversal integration?

    Dan Shapir
    @danshapir

    Hey, I want to use the default Logger (LoggerService) but connected to winston. Looking at the interface of the logging service, it's extremely light, and basically well, not useable in real life application. I want to pass objects to it. Something like
    Log.error(message:string, object:any, context) today you can't pass an object, only a stack trace and only for errors..

    Am I missing something? Or is it basically useless?

    Frederik Prijck
    @frederikprijck
    I wouldn't call it useless. LoggerService is used internally, so it has a specific signature that's used by nestjs, so changing the contract would probably make it unable to be used internally.
    Kamil Myśliwiec
    @kamilmysliwiec

    Hi NestJS community,

    We have recently moved to Discord platform: https://discord.gg/G7Qnnhy. Our Gitter channel has been deprecated and will be closed soon. Please, consider joining our new platform to stay in touch with our amazing community of developers. The reasons for this migration can be found in this GitHub issue: nestjs/nest#891

    Thank you,
    NestJS core team