userQuery is not a function
Here is my code for the custom Helper:
export const userQuery = customQuery(
query,
customCtx(async (ctx) => {
return {
userId: await getUserId(ctx)
};
})
);
And where I use it:
export const getUser = userQuery({
args: {},
async handler(ctx) {
return await ctx.db.get(ctx.userId as Id<'users'>);
}
});
here is the github repo where the issue is:
https://github.com/Cyberverse2/squid

