pantharshit00 / prisma-docs-generator

Prisma generator for automatically generating documentation reference from the Prisma schema.
MIT License
578 stars 27 forks source link

Add new option `includeRelationFields` #64

Closed fmy closed 1 year ago

fmy commented 1 year ago

Add option for includeRelationFields like other generator. I followed this code. https://github.com/notiz-dev/prisma-dbml-generator/blob/6b4b323400b3c5154ba0c85de6e0f68b271a2def/src/generator/table.ts#L76-L78

includeRelationFields = true(default)includeRelationFields = false
![スクリーンショット 2023-02-06 19 37 49](https://user-images.githubusercontent.com/856469/216950705-d3a687cf-86b7-4ab8-b6e6-ef0efd0ea987.png) ![スクリーンショット 2023-02-06 19 37 24](https://user-images.githubusercontent.com/856469/216950732-e6c6af51-35e7-40c1-a8fe-928b479cd453.png)
fmy commented 1 year ago

@pantharshit00 Can you check this PR please.

pantharshit00 commented 1 year ago

Hey @fmy, I was pretty busy last week. I will check this out today. Thank you for your patience!

pantharshit00 commented 1 year ago

Thanks for the PR. Everything looks good on a first look. CI is toast because I haven't updated deps here for a while and this generator honestly needs a rewrite since I haven't done any significant work here for a long time.

I will merge and cut a release in a the meanwhile.

pantharshit00 commented 1 year ago

Released https://github.com/pantharshit00/prisma-docs-generator/releases/tag/v0.6.0