Anya
content
// Contact Details Mutation
export const getcontactDetails = async (obj) => {
if (!graphqlAPI) {
console.error("GraphQL API endpoint is not defined");
return [];
}
try {
const response = await fetch("/api/contact", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(obj),
});
return await response.json();
} catch (error) {
console.error("Error submitting contact details:", error);
return { error: "Error submitting contact details" };
}
};
Full Stack Developer
No Categories Available
© 2024 Nextron Blog — Managed by Anjali |@anjalisah89
Contact for more information.