17 lines
418 B
TypeScript
17 lines
418 B
TypeScript
// resolvers.ts
|
|
export const resolvers = {
|
|
Mutation: {
|
|
submitForm: async (_: any, { input }: any) => {
|
|
const { name, email, phone, location, info } = input;
|
|
|
|
// Handle your logic here (e.g., save to DB)
|
|
console.log("Form submission received:", input);
|
|
|
|
return {
|
|
success: true,
|
|
message: "Form submitted successfully!",
|
|
};
|
|
},
|
|
},
|
|
};
|
|
|