{"record":{"id":"f00f607252ffe5b8","repo":"sickn33/agentic-awesome-skills","slug":"query-too-expensive-cost","errorCode":null,"errorMessage":"Query too expensive: ${cost}","messagePattern":"Query too expensive: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"skills/graphql/SKILL.md","lineNumber":897,"sourceCode":"  scalarCost: 1,\n  objectCost: 10,\n  listFactor: 10,\n  // Custom field costs\n  fieldCost: {\n    'Query.searchUsers': 100,\n    'Query.analytics': 500,\n    'User.posts': ({ args }) => args.limit || 10\n  }\n});\n\n// For rate limiting by cost\nconst costPlugin = {\n  requestDidStart() {\n    return {\n      didResolveOperation({ request, document }) {\n        const cost = calculateQueryCost(document);\n        if (cost > 1000) {\n          throw new Error(`Query too expensive: ${cost}`);\n        }\n        // Track cost for rate limiting\n        rateLimiter.consume(request.userId, cost);\n      }\n    };\n  }\n};\n\n### Subscriptions not properly cleaned up\n\nSeverity: MEDIUM\n\nSituation: Clients subscribe but don't unsubscribe cleanly. Network issues\nleave orphaned subscriptions. Server memory grows as dead\nsubscriptions accumulate.\n\nSymptoms:\n- Memory usage grows over time","sourceCodeStart":879,"sourceCodeEnd":915,"githubUrl":"https://github.com/sickn33/agentic-awesome-skills/blob/58d857988fcfac6986206bca2b2fe223aa437e4b/skills/graphql/SKILL.md#L879-L915","documentation":"Error \"Query too expensive: ${cost}\" thrown in sickn33/agentic-awesome-skills.","triggerScenarios":"Thrown at skills/graphql/SKILL.md:897 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"58d857988fcfac6986206bca2b2fe223aa437e4b","analyzedAt":"2026-08-26T11:55:59.350Z","schemaVersion":2},"datasetVersion":"2026-08-26T14:46:13.012Z"}