pothos icon indicating copy to clipboard operation
pothos copied to clipboard

Add `prismaFieldWithInput`

Open screfy opened this issue 3 years ago • 0 comments

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: () => { ... }
  })
);

screfy avatar May 26 '22 14:05 screfy