if i spread input will explicit defining it override the spread input?

Example
.input({
z.object({
email: z.string(),
password: z.string(),
....)}
})
....
await ctx.prisma.user.create({
data: {
...input,
password: hashedPassword
})
.input({
z.object({
email: z.string(),
password: z.string(),
....)}
})
....
await ctx.prisma.user.create({
data: {
...input,
password: hashedPassword
})
1 Reply
word
word3y ago
Yes, it will, it it comes next, like you wrote there.
Want results from more Discord servers?
Add your server