query error
export const getStore = query({
args: { storeId: v.id("stores") },
handler: async (ctx, args) => {
const store = await ctx.db.get(args.storeId);
console.log(store);
},
});
I have done this part
But how to access this api in page.tsx
as on writing it gives error
8 Replies
Welcome! Are you running
npx convex dev?yes
function is built of getStore but not able to access the function in page.tsx
Okay, and the
getStore() query is in convex/stores.ts?
oh the error is probably saying you have to pass an args object
should have asked you to paste the error messageyes
yeah done , resolved

Sweet
thanks
Hello, I am getting this error in console while it is accessing the api and convex functions are ready.
