Skip to main content
Glama
size_errors.ts972 B
import { api } from "./_generated/api"; import { action, mutation, query } from "./_generated/server"; export const queryThrowsNestingError = query({ args: {}, handler: () => { let result: any = 1; // 65 levels is too many for (let i = 0; i < 65; i++) { result = [result]; } return result; }, }); export const queryDoesNotThrowNestingError = query({ args: {}, handler: () => { let result: any = 1; // 64 levels is ok for (let i = 0; i < 64; i++) { result = [result]; } return result; }, }); export const writeToNowhere = mutation({ handler: async (_, _args: any) => {}, }); export const actionThrowsArgumentNestingError = action({ args: {}, handler: async (ctx) => { let nested: any = 1; // 64 levels plus 1 for arguments object is too many for (let i = 0; i < 64; i++) { nested = [nested]; } await ctx.runMutation(api.size_errors.writeToNowhere, { x: nested }); }, });

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