diff --git a/docs/docs/tutorial/chapter3/saving-data.md b/docs/docs/tutorial/chapter3/saving-data.md index 3bcd7386d234..c4827b97b880 100644 --- a/docs/docs/tutorial/chapter3/saving-data.md +++ b/docs/docs/tutorial/chapter3/saving-data.md @@ -1288,7 +1288,7 @@ import { validate } from '@redwoodjs/api' // ... -export const createContact = ({ input }: MutationResolvers['createContact']) => { +export const createContact: MutationResolvers['createContact'] = ({ input }) => { // highlight-next-line validate(input.email, 'email', { email: true }) return db.contact.create({ data: input })