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
word2y ago
Yes, it will, it it comes next, like you wrote there.
Want results from more Discord servers?
Add your server