How do I use custom scalars in mutations? #736
Answered
by
hayes
reillyjodonnell
asked this question in
Q&A
Replies: 1 comment
-
builder.mutationType({ fields: (t) => ({
createUser: t.prismaField({
type: 'User',
args: {
name: t.arg.string({ required: true }),
birthday: t.arg({ type: 'Date' }),
},
resolve: ... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
reillyjodonnell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've dug through all of the examples, previous issues, and discussions and couldn't find a mention of it. What's the syntax for using custom scalars in mutations?
note: in these examples I'm using Prisma w/ the plugin
I've defined the type information in SchemaTypes generic parameter of the builder
Then when creating the object schema the syntax is this:
Now how do I use this custom scalar for mutations?
I really appreciate the help!
Beta Was this translation helpful? Give feedback.
All reactions