paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
687 stars 55 forks source link

fix: prisma datamodel #203

Closed haleksandre closed 3 years ago

haleksandre commented 3 years ago

This should fix #202

When I'm passing my own Prisma.dmmf the models get parsed correctly via https://github.com/haleksandre/prisma-tools/blob/1abadc6f2ddfdcf1e14761993d986b5f57f95353/packages/plugins/src/select.ts#L74

Otherwise the models are empty since it looks for dataModel instead of datamodel.

AhmedElywa commented 3 years ago

Thank you for your fix put i already did it and pushed new version

haleksandre commented 3 years ago

Alright, thanks for the quick fix!