mutation
Nestjs - InputTypes and ArgumentTypes
Nestjs - InputTypes and ArgumentTypes
2021.05.22Mutation 만들기 restaurants.resolver.ts 파일에 다음과 같이 Mutation을 만듭니다. import { Resolver, Query, Args, Mutation } from '@nestjs/graphql'; import { CreateRestaurantDto } from './dtos/create-restaurant.dto'; import { Restaurant } from './entities/restaurant.entity'; @Resolver((of) => Restaurant) export class RestaurantResolver { @Mutation((returns) => Boolean) createRestaurant( @Args('name') name: string..