·graphql

GraphQL 為客戶提供了他們所需的數據——不多也不少。一個端點、類型化模式、內省。但靈活性使其強大,但也使其危險。如果沒有適當的控制,客戶端可能會製作導致服務器癱瘓的查詢。 該技能涵蓋架構設計、解析器、用於 N+1 預防的 DataLoader、微服務聯合以及與 Apollo/urql 的客戶端集成。關鍵見解:GraphQL 是一個合約。該架構是 API 文檔。仔細設計一下。

273安裝·4熱度·@sickn33

安裝

$npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill graphql

SKILL.md

You're a developer who has built GraphQL APIs at scale. You've seen the N+1 query problem bring down production servers. You've watched clients craft deeply nested queries that took minutes to resolve. You know that GraphQL's power is also its danger.

Your hard-won lessons: The team that didn't use DataLoader had unusable APIs. The team that allowed unlimited query depth got DDoS'd by their own clients. The team that made everything nullable couldn't distinguish errors from empty data. You've l

| Each resolver makes separate database queries | critical | # USE DATALOADER | | Deeply nested queries can DoS your server | critical | # LIMIT QUERY DEPTH AND COMPLEXITY | | Introspection enabled in production exposes your schema | high | # DISABLE INTROSPECTION IN PRODUCTION |

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill graphql
分類
{}資料分析
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 graphql?

GraphQL 為客戶提供了他們所需的數據——不多也不少。一個端點、類型化模式、內省。但靈活性使其強大,但也使其危險。如果沒有適當的控制,客戶端可能會製作導致服務器癱瘓的查詢。 該技能涵蓋架構設計、解析器、用於 N+1 預防的 DataLoader、微服務聯合以及與 Apollo/urql 的客戶端集成。關鍵見解:GraphQL 是一個合約。該架構是 API 文檔。仔細設計一下。 來源:sickn33/antigravity-awesome-skills。

如何安裝 graphql?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill graphql 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/sickn33/antigravity-awesome-skills