Rakesh RoushanR
Convex Community2y ago
11 replies
Rakesh Roushan

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
image.png
Was this page helpful?