mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): add alchemy and improve cli tooling and structure (#520)
This commit is contained in:
20
packages/backend/convex/showcase.ts
Normal file
20
packages/backend/convex/showcase.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { v } from "convex/values";
|
||||
import { query } from "./_generated/server";
|
||||
|
||||
export const getShowcaseProjects = query({
|
||||
args: {},
|
||||
returns: v.array(
|
||||
v.object({
|
||||
_id: v.id("showcase"),
|
||||
_creationTime: v.number(),
|
||||
title: v.string(),
|
||||
description: v.string(),
|
||||
imageUrl: v.string(),
|
||||
liveUrl: v.string(),
|
||||
tags: v.array(v.string()),
|
||||
}),
|
||||
),
|
||||
handler: async (ctx) => {
|
||||
return await ctx.db.query("showcase").collect();
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user