prisma-korea / graphql-schema-generator

Generate GraphQL Schema from Prisma schema.
MIT License
32 stars 12 forks source link

Modify convertType, convertScalar, addTypeModifiers to return field #48

Closed yujonglee closed 2 years ago

yujonglee commented 2 years ago

After #47, I noticed that convertType, convertScalar, addTypeModifiers better return field, not type.

It gives more power to transformer, which will shine with custom rules support.

codecov-commenter commented 2 years ago

Codecov Report

Merging #48 (b535f4b) into master (f2ff13d) will decrease coverage by 0.00%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #48      +/-   ##
==========================================
- Coverage   98.86%   98.85%   -0.01%     
==========================================
  Files          16       16              
  Lines         264      262       -2     
  Branches       26       26              
==========================================
- Hits          261      259       -2     
  Misses          3        3