neo4j-graphql-skill
覆盖 @node/@relationship/@cypher 等进阶指令,适合构建图 API
需要数据库访问与 JWT 配置,注意凭证与授权配置风险
用 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.
帮我安装这个 skill:https://raw.githubusercontent.com/neo4j-contrib/neo4j-skills/main/neo4j-graphql-skill/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/neo4j-contrib/neo4j-skills/main/neo4j-graphql-skill/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 |