feat(cli): add alchemy and improve cli tooling and structure (#520)

This commit is contained in:
Aman Varshney
2025-08-20 23:43:58 +05:30
committed by GitHub
parent c5430ae4fd
commit 5788876c47
152 changed files with 5804 additions and 2264 deletions

View File

@@ -0,0 +1,31 @@
import { v } from "convex/values";
import { query } from "./_generated/server";
export const getVideos = query({
args: {},
returns: v.array(
v.object({
_id: v.id("videos"),
_creationTime: v.number(),
embedId: v.string(),
title: v.string(),
}),
),
handler: async (ctx) => {
return await ctx.db.query("videos").collect();
},
});
export const getTweets = query({
args: {},
returns: v.array(
v.object({
_id: v.id("tweets"),
_creationTime: v.number(),
tweetId: v.string(),
}),
),
handler: async (ctx) => {
return await ctx.db.query("tweets").collect();
},
});