sortofsleepy
sortofsleepy
CCConvex Community
Created by sortofsleepy on 10/6/2024 in #support-community
npx convex import - always pushes to the same/wrong project
👋 Trying to get some test data into a table and for whatever reason, whenever I run npx convex import ... , the data always gets written to the wrong project in my account. - I only have 2 projects in my account. Projects A & B. I would like to import data into project B. If it matters, project A was created first. - Whenever I run the command, data is always written to project A. - When first prompted to select a project, I am picking project B. - I have also tried running npx convex dev --project B - I have also tried starting over and was re prompted for which project to work with; I also chose project B then and the same issue occurs. - I have also tried deleting project B and re-creating it via the cli but the issue persists. - I have double checked the env file; it does appear to point to the correct project. Ultimately I can just manually create everything but it'd be nice to not have to do so. Am I missing something? Thanks! 🎉
4 replies
CCConvex Community
Created by sortofsleepy on 10/2/2024 in #support-community
Trying to generate a OpenAPI C client - repeatedly fails to generate "any_type.h"
👋 Trying to explore and see if Convex might be a good choice for a simple side project. I'm basically looking to interact with Convex through a Zig application. That being the case, it seemed like generating a C client is the right call, unfortunately the generator appears to constantly fail to generate the necessary files. When I go to build, the compiler keeps complaining about a missing file called any_type.h
Not sure whether it's an issue with the spec generator or OpenAPI itself; figured I'd ask here first. If it matters I'm on Windows. For reference, this is pretty much the api I need: import {mutation, query} from "./_generated/server"; import {v} from "convex/values" export const get = query({ args: {}, handler: async (ctx) => { return await ctx.db.query("links").collect() } }) export const add = mutation({ args: { label: v.string(), city: v.string(), ip: v.string(), link_id: v.string() }, handler: async (ctx, args) => { return await ctx.db.insert("stats", {...args}) } }) Thank you!🎉
19 replies