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 {} 이 포스팅을 시작한 이유 처음 시작했을 때 도대체 어떻게 시작해야 작동하는 코드를 만들 수 있을지 "이것만 보면 된다" 라고 할만한 한글 문서가 없어서 남겨두고 싶어서 시작했습니다 이..

프로그래밍 방법

GraphQL

이런 분이면 더 좋아요 GraphQL이 처음인 사람 GraphQL 공식문서를 보기 귀찮은 사람 NestJS로 GraphQL을 만들어보고 싶은 사람 GraphQL 이란? API를 위한 쿼리 언어 GraphQL은 API를 위한 쿼리 언어이며 이미 존재하는 데이터로 쿼리를 수행하기 위한 런타임 입니다. GraphQL은 API에 있는 데이터에 대한 완벽하고 이해하기 쉬운 설명을 제공하고 클라이언트에게 필요한 것을 정확하게 요청할 수 있는 기능을 제공하며 시간이 지남에 따라 API를 쉽게 진화시키고 강력한 개발자 도구를 지원합니다. 라고 적혀있다. 쿼리 언어이고, 런타임이다 라는 내용이 개인적으로는 핵심이라고 생각합니다 런타임 vs 런타임 환경 런타임 프로그램이 실행되고 있는 동안의 동작을 말한다. 컴퓨터 언어 ..

be-student
'nestJS' 태그의 글 목록