Skip to main content
Glama
sets.ts909 B
import { action, mutation, query } from "./_generated/server"; export const insertValue = mutation({ args: {}, handler: async ({ db }) => { await db.insert("sets", { set: new Set([1, 2]) }); }, }); export const listValues = query({ args: {}, handler: async () => { return new Set(); }, }); export const mutationReturningSet = mutation({ args: {}, handler: async () => { return new Set(["hello", "world"]); }, }); export const actionReturningSet = action({ args: {}, handler: async () => { return new Set(["hello", "world"]); }, }); export const queryWithAnyArg = query({ handler: async (_, _args: { x: any }) => { // Do nada }, }); export const mutationWithAnyArg = mutation({ handler: async (_, _args: { x: any }) => { // Do nada }, }); export const actionWithAnyArg = action({ handler: async (_, _args: { x: any }) => { // Do nada }, });

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