neo4j-graphql-skill

仓库创建 2026年1月20日最近提交 1 天前SkillHot 收录 21 天前
▸ 精选理由

覆盖 @node/@relationship/@cypher 等进阶指令,适合构建图 API

▸ 风险提示

需要数据库访问与 JWT 配置,注意凭证与授权配置风险

这个 Skill 做什么

用 Neo4j 和 @neo4j/graphql 快速生成并配置 GraphQL API

把 Neo4j 数据库快速变成可用的 GraphQL API,自动生成查询/变更并允许写 typeDefs 和 @cypher 自定义解析器。支持用 JWT/JWKS 做字段级授权、用 OGM 在服务端程序化访问,也能开 CDC 订阅和 Apollo Federation。适合在写 schema、上安全或把 Neo4j 接入 Apollo Server 时用;不负责解析器外的原始 Cypher。

▸ 展开 SKILL.md 英文原文

Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS). Covers Neo4jGraphQL constructor, getSchema(), assertIndexesAndConstraints(), type definitions with @node, @relationship (IN/OUT/UNDIRECTED), @cypher for custom resolvers, @authorization/@authentication for JWT/JWKS security, auto-generated queries/mutations, OGM programmatic access, subscriptions via CDC, and Apollo Federation. Use when writing typeDefs, securing fields, or wiring Neo4j to Apollo Server. Does NOT handle raw Cypher outside resolvers — use neo4j-cypher-skill. Does NOT cover Spring Data Neo4j entity mapping — use neo4j-spring-data-skill.

开发编程GraphQLNeo4jAPI通用
98
Stars
35
Forks
29
仓库内 Skill
+7
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/neo4j-contrib/neo4j-skills/main/neo4j-graphql-skill/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/neo4j-contrib/neo4j-skills/main/neo4j-graphql-skill/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
## When to Use

- Creating a GraphQL API from a Neo4j graph schema with `@neo4j/graphql`
- Writing type definitions with `@relationship`, `@cypher`, `@authorization` directives
- Using OGM for server-side programmatic Neo4j access (bypasses GraphQL auth)
- Configuring auto-generated queries, mutations, subscriptions
- Securing types/fields with JWT or JWKS-based `@authorization` rules
- Migrating from v5/v6 to v7 (breaking changes below)

## When NOT to Use

- **Raw Cypher queries outside GraphQL resolvers** → `neo4j-cypher-skill`
- **Spring Data Neo4j / Java entity mapping** → `neo4j-spring-data-skill`
- **Generic GraphQL without Neo4j** — outside scope

---

## Version Matrix

| Version | 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有