TRPC good practice, single schema, multiple similar updates.

I'm using TRPC and zod.

I have two similar forms which update the user object in my database.

On one I want to update firstName and lastName.

On the other I want to update firstName, lastName and email.

Should these two different updates be their own separate functions or should they be one which can share a schema.
Was this page helpful?