alfieqashwa
CCConvex Community
•Created by alfieqashwa on 2/6/2025 in #show-and-tell
Qozy Cue -- Billiard & Cafe Real Time Online Application
Hey, Mr Matt Luo. Thank you for your response! Yes, I'm from Indonesia. I see your email in the database—why not click the trial bouncing animation (a Tailwind animation) and explore the app further?
7 replies
CCConvex Community
•Created by alfieqashwa on 2/6/2025 in #show-and-tell
Qozy Cue -- Billiard & Cafe Real Time Online Application
Sure! As a Frontend Engineer, I use the T3 Stack as a boilerplate to speed up full-stack app development. tRPC (and of course, TypeScript) helps me catch potential bugs early in the development process.
However, I soon realized I needed real-time technology because there would be scenarios where multiple cashiers work on the same page simultaneously. At the time, I tweaked the page by using
refetchInterval()
from TanStack Query every five seconds to avoid using WebSockets. But I was concerned that this approach might lead to additional costs in production (e.g., on Neon, a serverless Postgres platform).
I was already familiar with Supabase, an open-source Firebase alternative, and had also heard about AppWrite. So, I researched and compared both. Based on my limited knowledge and experience, Supabase doesn’t seem as strong as Firebase when it comes to real-time capabilities.
By chance, I discovered Convex while browsing about WebSockets, and I became curious about it—especially after watching your discussion on SQL history on this YouTube video: https://www.youtube.com/watch?v=WjIbppFX7Ww
Fortunately, my prior experience with tRPC gave me the right mental model to pick up Convex quickly. I was especially happy to remove all the await utils.order.invalidate()
calls scattered throughout my code.
I really enjoyed my experience rewriting the app, even though I was initially a bit confused because my understanding of relational data structures was deeply rooted in SQL rather than NoSQL. I had a similar struggle when learning MongoDB (my bad!). Right now, I’m still encountering some potential bugs because I forgot to manually remove related data—something I used to handle with onDelete: Cascade in Prisma ORM.7 replies
CCConvex Community
•Created by alfieqashwa on 8/8/2024 in #general
A company has many users, but a user
@v could you provide the example code using includes() ? or the documentation related to it.
15 replies
CCConvex Community
•Created by alfieqashwa on 8/8/2024 in #general
A company has many users, but a user
I'm gonna read one more time the documentation. Thank you for your response.
15 replies
CCConvex Community
•Created by alfieqashwa on 8/8/2024 in #general
A company has many users, but a user

15 replies
CCConvex Community
•Created by alfieqashwa on 8/8/2024 in #general
A company has many users, but a user
Yeah, that's what I want to. After collect() if I add dot ".", typescript infers an "include()" method, but I can't find in the documentation of "include()". I'm guessing if it's like as prisma syntax to include the company of each user. Isn't it? Or not?
15 replies