Cam
Cam
CCConvex Community
Created by YJ on 5/13/2024 in #support-community
Trying to execute as Query, but it is defined as Mutation.
Have you tried calling the getMe query from the convex console? My troubleshooting approach would be: - Comment out auth checking code - See if the query works from your next app - If not, try calling from the convex console
3 replies
CCConvex Community
Created by sbkl. on 5/10/2024 in #support-community
AuthKit from WorkOS integration
I'm in a similar boat. I need auth for mobile and web. Clerk was easy to set up, and works well with convex. But I doubt i'll generate much revenue, so I am experimenting with Lucia auth, so far so good.
10 replies
CCConvex Community
Created by Cam on 5/9/2024 in #support-community
Add headers/tokens to calls to queries and actions
Awesome, that sounds like a great approach 👍
3 replies
CCConvex Community
Created by burnstony#1975 on 5/6/2024 in #support-community
expo using template
I had trouble with this starter template as well. Cloning it from GitHub worked for me
46 replies
CCConvex Community
Created by stevanfreeborn on 9/9/2023 in #support-community
How to call public query from action?
I noticed in the docs that internal queries are used in the examples, no security concerns with importing queries and calling them from an action like this?
import {api, internal} from "./_generated/api";

export const getWillyWeather = action({
args: {locationID: v.number()}, handler: async (ctx, args) => {
// Check if weather conditions exist, and are recent (no older than 20 minutes)
const weatherLocation = await ctx.runQuery(api.weatherQueries.queryLocationByID, {id: args.locationID});
const weatherConditions = await ctx.runQuery(api.weatherQueries.queryConditionsByLocationForeignKey, {locationID: weatherLocation._id});
...
},
});
import {api, internal} from "./_generated/api";

export const getWillyWeather = action({
args: {locationID: v.number()}, handler: async (ctx, args) => {
// Check if weather conditions exist, and are recent (no older than 20 minutes)
const weatherLocation = await ctx.runQuery(api.weatherQueries.queryLocationByID, {id: args.locationID});
const weatherConditions = await ctx.runQuery(api.weatherQueries.queryConditionsByLocationForeignKey, {locationID: weatherLocation._id});
...
},
});
7 replies
CCConvex Community
Created by Cam on 5/1/2024 in #support-community
monorepo vs multi repo's
That's an interesting idea. I had heard that expo web wasn't ready for the big time, but indeed avoiding another code base is probably a worthwhile trade off with the existing limitations. Ok, I'll go with an expo react native project, and throw the python stuff into a sub directory and call it good. Thanks for the suggestion @erquhart !
7 replies
CCConvex Community
Created by Cam on 5/1/2024 in #support-community
Is there a guide for running convex locally and deploying to the cloud?
Great! thanks for that @ian 🙂
3 replies