Schemas vs Schemaless
So I have a conceptual question about convex! I was doing the counter/messages tutorial and adding the code for the messages portion seems to break the counter portion (I haven't updated App.tsx yet, only listMessage and sendMessage)
```
convex/incrementCounter.ts:4:37 - error TS2345: Argument of type '"counter_table"' is not assignable to parameter of type '"messages"'.
4 const counterDoc = await db.query("counter_table").first();
~~~...
Hey all—I ve gotten a PoC of ProseMirror
Hey all—I've gotten a PoC of ProseMirror OT collaborative editing running on Convex!
One challenge I've run into, though, is that my Convex mutation that does the server-side rebasing of the ProseMirror document needs to import modules (e.g.
prosemirror-model
) which reference the DOM API, so I'm getting type-checking errors via e.g. npx convex dev
and npx convex deploy
. Passing a flag to turn off type-checking works fine, but I'd of course prefer not to do that.
I suppose what I'm saying I'd prefer is for type-checking of Convex functions to take into account not the modules that I'm importing, but the specific terms and types, and their dependencies. But that sounds possibly quite tricky! Any recommendations?...Separately as someone who really likes
Separately, as someone who really likes Elm, I would possibly be interested in helping to write an Elm client for Convex. Would this be of interest to the team, either now or in the future?
I’m going to build an app soon that
I’m going to build an app soon that requires collaborative rich text editing, and I was wondering whether anyone here has thoughts about what kind of role Convex might play in such an application. Is collaborative editing (of any kind) the sort of feature that Convex can or will be able to support?
accidentally tried to render an id
accidentally tried to render an id directly like ...
id: {job._id}
. the error didn’t make it obvious that you need to call job._id.toString()
. error was
Uncaught Error: Objects are not valid as a React child (found: object with keys {tableName, id}). If you meant to render a collection of children, use an array instead.
Uncaught Error: Objects are not valid as a React child (found: object with keys {tableName, id}). If you meant to render a collection of children, use an array instead.
However if you want to do codegen in CI
However if you want to do codegen in CI you can, I think a CONVEX_DEPLOY_KEY env var being available should do it.