10 lines
311 B
TypeScript
10 lines
311 B
TypeScript
import { ConvexClient } from "convex/browser";
|
|
import { api } from "./convex/_generated/api.js";
|
|
|
|
const url = process.env["CONVEX_URL"]
|
|
const client = new ConvexClient(url!);
|
|
|
|
// 使用主应用的公共 API
|
|
const test2List = await client.query(api.wrapper.getTest2, {});
|
|
|
|
console.log("Test2 List:", test2List); |