Web Dev Cody
CCConvex Community
•Created by Web Dev Cody on 10/5/2024 in #support-community
Convex in stackblitz
has anyone gotten convex working in stackblitz
5 replies
CCConvex Community
•Created by Web Dev Cody on 10/2/2024 in #support-community
Understanding usePaginatedQuery
or just don't use ids and instead use proper dates
23 replies
CCConvex Community
•Created by Web Dev Cody on 10/2/2024 in #support-community
Understanding usePaginatedQuery
I could also probably just do order('desc') so that id 1 is the oldest I think
23 replies
CCConvex Community
•Created by Web Dev Cody on 10/2/2024 in #support-community
Understanding usePaginatedQuery
23 replies
CCConvex Community
•Created by Web Dev Cody on 10/2/2024 in #support-community
Understanding usePaginatedQuery
sorry I've modified since posting
23 replies
CCConvex Community
•Created by Web Dev Cody on 10/2/2024 in #support-community
Understanding usePaginatedQuery
run it, then just do a take(PAGE_SIZE)
23 replies
CCConvex Community
•Created by Web Dev Cody on 10/2/2024 in #support-community
Understanding usePaginatedQuery
going to add this
export const addAutoIncrementingIdToPosts = internalMutation({
args: {},
async handler(ctx) {
const posts = await ctx.db.query("blogPosts").order("desc").collect();
await Promise.all(
posts.map((post, index) =>
ctx.db.patch(post._id, { incrementingId: index + 1 })
)
);
},
});
23 replies
CCConvex Community
•Created by Web Dev Cody on 10/2/2024 in #support-community
Understanding usePaginatedQuery
order desc
23 replies
CCConvex Community
•Created by Web Dev Cody on 10/2/2024 in #support-community
Understanding usePaginatedQuery
yeah I just want a list of blog posts by date
23 replies
CCConvex Community
•Created by Web Dev Cody on 10/2/2024 in #support-community
Understanding usePaginatedQuery
and then calculate the page / offset using that with a .take max page length?
23 replies
CCConvex Community
•Created by Web Dev Cody on 10/2/2024 in #support-community
Understanding usePaginatedQuery
easiest approach I can think is just add an auto incrementing id to the records
23 replies
CCConvex Community
•Created by Web Dev Cody on 10/2/2024 in #support-community
Understanding usePaginatedQuery
@Hmza would the query on the convex query just need to return a pagination object?
23 replies
CCConvex Community
•Created by Web Dev Cody on 9/30/2024 in #support-community
youtube api in action
5 replies
CCConvex Community
•Created by Web Dev Cody on 9/30/2024 in #support-community
youtube api in action
I fixed this by wrapping the convex file stream with a node stream
5 replies
CCConvex Community
•Created by Web Dev Cody on 9/24/2024 in #support-community
Custom Convex Domain
my thinking is that if I added a proxy http endpoint for my images, I'd want to put it behind cloudflare cdn to cache the images and lower any convex bandwidth charges, but if the project id is discoverable to an end user, someone could easily just write a script to hit my convex.site directly and keep downloading the same file
6 replies
CCConvex Community
•Created by Web Dev Cody on 9/24/2024 in #support-community
Get all documents where storageId not null
yeah, just gt
6 replies
CCConvex Community
•Created by Web Dev Cody on 9/24/2024 in #support-community
Get all documents where storageId not null
ty
6 replies
CCConvex Community
•Created by Web Dev Cody on 9/21/2024 in #support-community
Delete all files
sorry for not seeing that 😅
17 replies
CCConvex Community
•Created by Web Dev Cody on 9/21/2024 in #support-community
Delete all files
yes, this is perfect
17 replies
CCConvex Community
•Created by Web Dev Cody on 9/21/2024 in #support-community
Delete all files
17 replies