NestJS

NestJS

NestJS Microservices overview 번역

더보기 이 번역을 시작하게 된 이유는 실제로 번역이 된 Nestjs의 MicroServices문서가 전혀 없어서 시작하게 되었습니다. 단순하게 번역을 목적으로하기에 번역이 필요하신 분만 읽어보시는 것을 추천드립니다 이 글에 나온 내용을 간단히 요약하고 진행하도록 하겠습니다. 1. NestJS는 추상화가 잘 되어있어서, 다른 곳에서 사용하는 것과 거의 똑같이 microservice에서 적용할 수 있다. 2. 방식은 크게 2가지가 있다. 3. Request-response패턴 @MessagePattern을 통해서 처리하는 controller의 역할을 함 연결을 무조건 보장하는 안정성을 가지고 있음 4. Event-based 패턴 @EventPattern을 통해서 처리하는 controller의 역할을 함. K..

NestJS

NestJS 로 GraphQL Mutation 만들기

https://be-student.tistory.com/21 NestJS 로 GraphQL Query 만들기 https://be-student.tistory.com/20 GraphQL 시작하기 -2 import { HelloResolver } from './hello.resolver'; @Module({ imports: [ GraphQLModule.forRoot ({ driver: ApolloDriver, playground: true, autoSche.. be-student.tistory.com 이전 글을 읽어보시면 좋습니다 여기까지 만들어 졌다면 이제 Mutation은 쉽습니다 import { Field, InputType } from '@nestjs/graphql'; @InputType() expo..

NestJS

NestJS 로 GraphQL Query 만들기

https://be-student.tistory.com/20 GraphQL 시작하기 -2 import { HelloResolver } from './hello.resolver'; @Module({ imports: [ GraphQLModule.forRoot ({ driver: ApolloDriver, playground: true, autoSchemaFile: join(process.cwd(), 'src/schema.gql'), }), ],.. be-student.tistory.com 이전 글을 읽어보시면 좋습니다 간단하게 이번 글을 시작하기 전에 필요한 내용은 저번에도 말씀드렸지만 nest new "프로젝트명" cd "프로젝트명" npm i @nestjs/graphql @nestjs/apollo grap..

NestJS

NestJS로 GraphQL 시작하기

import { HelloResolver } from './hello.resolver'; @Module({ imports: [ GraphQLModule.forRoot({ driver: ApolloDriver, playground: true, autoSchemaFile: join(process.cwd(), 'src/schema.gql'), }), ], controllers: [AppController], providers: [AppService, HelloResolver], }) export class AppModule {} 이 포스팅을 시작한 이유 처음 시작했을 때 도대체 어떻게 시작해야 작동하는 코드를 만들 수 있을지 "이것만 보면 된다" 라고 할만한 한글 문서가 없어서 남겨두고 싶어서 시작했습니다 이..

be-student
'NestJS' 카테고리의 글 목록