paljs / prisma-tools

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

Suggestion of Generator options #140

Closed codingfunwoody closed 3 years ago

codingfunwoody commented 3 years ago

Hi, can you add a option excludeFieldsAndQueriesAndMutationsByModel?

i just want to exclude some fields in some queries or mutations. E.g. exclude "id" field in mutations of update, remain "id" field in queries

AhmedElywa commented 3 years ago

I didn't get your idea. Can you please add an example of usage?

codingfunwoody commented 3 years ago

Sorry my unclear question, My expectation is excluding "id" field in input types of mutation. E.g. create a user should not include "id" field in input type of mutation. I think this is nexusjs problem, i will ask them later. Thanks for your reply