initial update
This commit is contained in:
17
resolvers.ts
Normal file
17
resolvers.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// 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!",
|
||||
};
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user