pothos
pothos copied to clipboard
Add `prismaFieldWithInput`
It would be nice to have the prismaFieldWithInput method when is With-Input plugin installed.
Something like this:
builder.mutationField('updateUser', (t) =>
t.prismaFieldWithInput({
type: 'User',
input: {
displayName: t.input.string({ required: false })
},
resolve: () => { ... }
})
);