Skip to main content
Glama
creationTime.ts407 B
import { query, mutation } from "./_generated/server"; export const createFiveDocuments = mutation({ args: {}, handler: async ({ db }) => { for (let i = 0; i < 5; i++) { await db.insert("table", { count: i }); } }, }); export const getDocumentsByCreationTime = query({ args: {}, handler: ({ db }) => { return db.query("table").withIndex("by_creation_time").collect(); }, });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/get-convex/convex-backend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server