erquhart
CCConvex Community
•Created by Sara on 12/22/2024 in #support-community
Feature Request: return the number the page is on in `.paginate()`
Haven’t tried this yet, but this is designed for your use case: https://discord.com/channels/1019350475847499849/1319668553171075184/1319668553171075184
4 replies
CCConvex Community
•Created by sonandmjy on 12/21/2024 in #support-community
Hitting error "found wrong number of app bundles" in dev CLI
I believe all around imports too
11 replies
CCConvex Community
•Created by sonandmjy on 12/21/2024 in #support-community
Hitting error "found wrong number of app bundles" in dev CLI
yeah there are other weird things that broke somewhere mid 22.x and fixed mid 23.x
11 replies
CCConvex Community
•Created by sonandmjy on 12/21/2024 in #support-community
Hitting error "found wrong number of app bundles" in dev CLI
I ran node 23.0 once for something else and ran into a different issue, but not this same issue. @sonandmjy curious if using node v23 latest still has this behavior?
11 replies
CCConvex Community
•Created by Eva on 12/21/2024 in #support-community
`npx convex dev` always adds `.env.local` to `.gitignore`?
Given the failure case is zero impact, your first approach makes sense. Pretty sure they'd take a PR.
14 replies
CCConvex Community
•Created by Eva on 12/21/2024 in #support-community
`npx convex dev` always adds `.env.local` to `.gitignore`?
ah good point
14 replies
CCConvex Community
•Created by Eva on 12/21/2024 in #support-community
`npx convex dev` always adds `.env.local` to `.gitignore`?
could still give (unlikely) false positives - maybe
str.split(/\r?\n/)
14 replies
CCConvex Community
•Created by Omar on 12/21/2024 in #support-community
Fetching another document's data via id in query
The convex helper is just a little nicer than the vanilla js approach using Promise.all and array.map. They work the same.
10 replies
CCConvex Community
•Created by Omar on 12/21/2024 in #support-community
Fetching another document's data via id in query
Use
getAuthUserId
from convex-dev/auth/server
instead of getUserIdentity10 replies
CCConvex Community
•Created by Omar on 12/21/2024 in #support-community
Fetching another document's data via id in query
Also highly recommend the tutorial to get up to speed on Convex: https://docs.convex.dev/tutorial/
10 replies
CCConvex Community
•Created by Omar on 12/21/2024 in #support-community
Fetching another document's data via id in query
Relevant docs here: https://docs.convex.dev/database/reading-data/#join
10 replies
CCConvex Community
•Created by Omar on 12/21/2024 in #support-community
Fetching another document's data via id in query
10 replies
CCConvex Community
•Created by Eva on 12/21/2024 in #support-community
`npx convex dev` always adds `.env.local` to `.gitignore`?
Maybe there's some unexpected whitespace getting into the lines array
14 replies
CCConvex Community
•Created by Eva on 12/21/2024 in #support-community
`npx convex dev` always adds `.env.local` to `.gitignore`?
Weird, it looks like that shouldn't be happening for your case: https://github.com/get-convex/convex-js/blob/84314db1f591306faf2cab9b46a458f6128a7647/src/cli/lib/deployment.ts#L144-L162
14 replies
CCConvex Community
•Created by sonandmjy on 12/21/2024 in #support-community
Hitting error "found wrong number of app bundles" in dev CLI
Thanks for circling back!
11 replies
CCConvex Community
•Created by wess on 12/19/2024 in #support-community
Should I use `users` table or `profiles`?
which... yeah I'm going to back to inlining them lol
15 replies
CCConvex Community
•Created by wess on 12/19/2024 in #support-community
Should I use `users` table or `profiles`?
I bet it's to avoid implicit changes to the schema from auth lib updates
15 replies
CCConvex Community
•Created by wess on 12/19/2024 in #support-community
Should I use `users` table or `profiles`?
I'm actually curious why the docs say to inline them, wonder if we're missing something here. I just switched to spread, will update if I encounter issues, but the types look right.
15 replies
CCConvex Community
•Created by wess on 12/19/2024 in #support-community
Should I use `users` table or `profiles`?
yeah it's the second one
15 replies
CCConvex Community
•Created by wess on 12/19/2024 in #support-community
Should I use `users` table or `profiles`?
Totally fine to customize that table, there’s a guide in the docs: https://labs.convex.dev/auth/setup/schema
15 replies