prisma-korea / graphql-schema-generator

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

Support createQuery option. #42

Closed yujonglee closed 2 years ago

yujonglee commented 2 years ago

Second part of #22. Can be used like below.

generator graphql {
  provider = "node ./dist-cjs/index.js"
  createQuery = "true"
}

See diff of transpile.test.ts for example.

codecov-commenter commented 2 years ago

Codecov Report

Merging #42 (9396be5) into master (4f24cf6) will decrease coverage by 0.31%. The diff coverage is 97.22%.

@@            Coverage Diff             @@
##           master      #42      +/-   ##
==========================================
- Coverage   98.61%   98.29%   -0.32%     
==========================================
  Files          16       16              
  Lines         216      235      +19     
  Branches       17       20       +3     
==========================================
+ Hits          213      231      +18     
- Misses          3        4       +1