Skip to content

How do I use custom scalars in mutations? #736

Answered by hayes
reillyjodonnell asked this question in Q&A
Discussion options

You must be logged in to vote
builder.mutationType({ fields: (t) => ({
  createUser: t.prismaField({
    type: 'User',
    args: {
      name: t.arg.string({ required: true }),
      birthday: t.arg({ type: 'Date' }),
    },
    resolve: ...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by reillyjodonnell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants