nexus에서 custom scalar type을 사용할 때 마다 매번 type asser...
# 잡담
u
nexus에서 custom scalar type을 사용할 때 마다 매번 type assertion을 해줬는데, 찾아보니깐 type을 입혀주는 방법이 있네요 !! 공식 문서에는 안보였는데..그냥 d.ts 파일 열어 보니깐 사용법이 있네요
Copy code
export type DateTime = Date

export default asNexusMethod(GraphQLDateTime, 'date', {
  module: __dirname,
  export: 'DateTime',
})
👍 1
ohh 1