Code-first 점검

GraphQL 설정 흐름

ApolloDriver를 켜는 것만으로는 부족하다. 타입 데코레이터와 리졸버가 모듈에 등록되어야 schema.gql과 Playground에서 확인된다.

module

GraphQLModule

driver

ApolloDriver로 런타임을 선택한다.

type

ObjectType

field

클라이언트가 요청할 필드를 선언한다.

resolver

Query

args

요청 인자를 받아 실제 데이터를 반환한다.

verify

schema.gql

playground

생성된 SDL과 실행 결과를 함께 확인한다.