Paul
CCConvex Community
•Created by Paul on 2/26/2025 in #support-community
watching a custom endpoint, rather than an api endpoint
But otherwise, I appreciate the responses and I will have a think on what to do next.
38 replies
CCConvex Community
•Created by Paul on 2/26/2025 in #support-community
watching a custom endpoint, rather than an api endpoint
It's a shame that the current paradigm just scans the single convex directory. It would be nicer if there was a v2 which scanned the codebase for convex queries and mutations and then transpiled that up to the server. That way, the benefit of having queries/mutations adjacent to code would be there.
38 replies
CCConvex Community
•Created by Paul on 2/26/2025 in #support-community
watching a custom endpoint, rather than an api endpoint
I don't know another way of phrasing it. But isn't it an http endpoint at some layer in the convex react library? I thought maybe there's a way of replicating that?
38 replies
CCConvex Community
•Created by Paul on 2/26/2025 in #support-community
watching a custom endpoint, rather than an api endpoint
In this instance, it's only 1 domain (backend ts) that has the issue where there's a lot of business logic in 1 place and co-mingled with the database logic. Pulling that out into convex is going to be a real chore. Hence the question on whether the react useQuery can hit an endpoint rather than the api.
38 replies
CCConvex Community
•Created by Paul on 2/26/2025 in #support-community
watching a custom endpoint, rather than an api endpoint
Right, I just mention the syntax comparison. with other solutions it's insitu, you can code do the query and keep on coding.
But with convex, it's now having code located elsewhere and running inside a handler. So any code that modifies the payload now has to be carried along to the handler. It cannot be insitu with the other business logic. Again, the DX suffers.
38 replies
CCConvex Community
•Created by Paul on 2/26/2025 in #support-community
watching a custom endpoint, rather than an api endpoint
I thought there weren't transactions per se? 🤔
38 replies
CCConvex Community
•Created by Paul on 2/26/2025 in #support-community
watching a custom endpoint, rather than an api endpoint

38 replies
CCConvex Community
•Created by Paul on 2/26/2025 in #support-community
watching a custom endpoint, rather than an api endpoint
But coming from other paradigms, this is really limiting as normally database functions live adjacent to the code that's being worked on.
38 replies
CCConvex Community
•Created by Paul on 2/26/2025 in #support-community
watching a custom endpoint, rather than an api endpoint
I meant that all the files relating to the database have to live in /convex
38 replies
CCConvex Community
•Created by Paul on 2/26/2025 in #support-community
watching a custom endpoint, rather than an api endpoint
Coming from prisma. I can access the prisma singleton and then the tables and do queries/mutations insitu. But convex, I can't.
38 replies
CCConvex Community
•Created by Paul on 2/26/2025 in #support-community
watching a custom endpoint, rather than an api endpoint
I'm butting against the design constraint of the current paradigm. For me it breaks the DX of my current codebase. I have react, encore (ts backend), restate, rust. And although it's a poc with 1 app. I will be porting 9 others across and it will be a horrible experience having all 10 apps be centralised for the database.
38 replies
CCConvex Community
•Created by Paul on 2/26/2025 in #support-community
watching a custom endpoint, rather than an api endpoint
Does the limitation for the centralised code lie with the server or the client library?
38 replies
CCConvex Community
•Created by Paul on 2/25/2025 in #support-community
Need some suggestions about the DX
Do you know offhand links to docs or stack articles which discuss how the database works with respect to queries/mutations etc with a view or writing a layer?
Ok found: https://stack.convex.dev/how-convex-works
digging into that 😄
6 replies
CCConvex Community
•Created by Paul on 2/24/2025 in #support-community
How to have multiple schemas
Team. Are there any pitfalls to doing this approach? Thanks
14 replies
CCConvex Community
•Created by Paul on 2/24/2025 in #support-community
How to have multiple schemas
Can confirm it works from my
encore
backend. Didn't need to follow the link above.14 replies
CCConvex Community
•Created by Paul on 2/24/2025 in #support-community
How to have multiple schemas
Now to determine whether I can create queries/mutations in my ts backend and then have the watcher import them as functions. 🤔
14 replies