Open adharshmk96 opened 5 days ago
useAsyncQuery
works well
const query = gql`
query {
activeTrainingProgram {
id
name
trainingWeek {
day
exercises {
exerciseName
weight
sets
reps
}
}
}
}
`;
const sampleData = {
id: 1,
name: "Sample Training Program",
trainingWeek: {
day: "Monday",
exercises: [
{
exerciseName: "Sample Exercise",
weight: 50,
sets: 3,
reps: 10,
},
],
},
};
const { data } = await useAsyncQuery(query);
Environment
Build Modules: -
Describe the bug
I'm getting 500 error when accessing a route that's using useQuery
the code I'm using is
in nuxt config I've configured it like this
Expected behaviour
I'm expecting the page to load properly without errors.
Reproduction
No response
Additional context
No response
Logs