prisma-korea / graphql-schema-generator

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

Remove store, add extractScalars #10

Closed yujonglee closed 2 years ago

yujonglee commented 2 years ago

Before:

There was two problems.

  1. ConvertType is also adding scalar to store, which is not related to converting type.
  2. Due to 1, scalarsOfSchema should be created after modelsOfSchema.

After:

Solve problems by removing store and adding extractScalars function.

yujonglee commented 2 years ago

It is reverted in 8e1528356af1012d8a4a5a368e35242649922520, and the revert is canceled in c8d3ffa7f78417ab07a57d6598c325bb9301151c.

It was reversed because after this commit, npx generate prisma does nothing but terminate. And I found that it was because of wrong auto import. So I fixed it.