indreklasn / graphql-nodejs-hapi-api

How to set-up a powerful API with Nodejs, GraphQL, MongoDB, Hapi, and Swagger
https://levelup.gitconnected.com/how-to-setup-a-powerful-api-with-nodejs-graphql-mongodb-hapi-and-swagger-e251ac189649
MIT License
114 stars 34 forks source link

how to write more effective #4

Open xinshangshangxin opened 6 years ago

xinshangshangxin commented 6 years ago
  1. define type at graphql/PaintingType.js
  2. define scheme at models/Painting.js
  3. if use typescript, a interface need to define at client

all of them are similar, but write 3 times, how to more effective?