Creator · neo4j-contrib
Last updated · Sep 4, 2026
Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS).
Creator · neo4j-contrib
Last updated · Sep 4, 2026
Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS).
Creator · neo4j-contrib
Last updated · Sep 4, 2026
Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS).
Creator · neo4j-contrib
Last updated · Sep 4, 2026
Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS).
Sandbox only
Install targets
Codex install prompt
Install the "neo4j-graphql-skill" agent skill from https://github.com/neo4j-contrib/neo4j-skills/tree/main/neo4j-graphql-skill. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS). After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"neo4j-contrib-neo4j-graphql-skill","task":"Install neo4j-graphql-skill","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
RAG and knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Agent fit
Claude Code + Cursor + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Maintenance
fresh
5d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
106
67/100 Quality · 72/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
106 GitHub stars
Repo activity
106 stars, 36 forks
Maintenance
5d since push
License
MIT
Install
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skillDo not use when
Alternative
174.2K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
84.4K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
174.2K Stars
npx skills add anthropics/skills --skill canvas-design
Alternative
174.2K Stars
npx skills add anthropics/skills --skill brand-guidelines
Agent safety v2
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20neo4j-graphql-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20neo4j-graphql-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/neo4j-contrib-neo4j-graphql-skill/install
Agent should check
Copy prompt
Task: Use neo4j-graphql-skill in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20neo4j-graphql-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-graphql-skill/install
Install command: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/neo4j-contrib-neo4j-graphql-skill/install
LLM text format
/api/skills/neo4j-contrib-neo4j-graphql-skill/install?format=text
Find alternatives
/api/skills/search?q=neo4j-graphql-skill&limit=3
Agent prompt
Use neo4j-graphql-skill for this task. Review https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-graphql-skill/install, then install with: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skillRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/neo4j-contrib-neo4j-graphql-skill
LLM text
/api/registry/manifest/neo4j-contrib-neo4j-graphql-skill?format=text
Install alias
/api/registry/install/neo4j-contrib-neo4j-graphql-skill
Recommend
/api/registry/recommend?task=Use%20neo4j-graphql-skill%20in%20an%20agent%20workflow&limit=3
Agent fit
RAG and knowledge
Use-case tags
Platforms
Claude Code, Cursor
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
RAG and knowledge
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO106 GitHub stars
Stars/forks activity
CHECK106 stars, 36 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Workflow fit
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
--- name: neo4j-graphql-skill description: 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. version: 1.0.4 allowed-tools: Bash WebFetch ---
## 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 | Status | Notes | |---|---|---| | v7 | Current — use ≥ 7.6.0 | `@node` required; `options` removed; explicit `eq` syntax | | v5 | LTS — use ≥ 5.12.15 | Older syntax; `options: {limit, offset, sort}` still valid |
Default to v7 unless codebase is on v5.
Security patches — upgrade before shipping auth:
| Fix | Fixed in | |---|---| | Subscriptions accepted an unverified JWT from WebSocket `connectionParams` (auth/authz bypass) | 7.5.6 / 5.12.14 | | Field-level `@authentication` on a root custom-resolver field ignored when the operation type also had type-level `@authentication` (privilege escalation) | 7.6.0 / 5.12.15 |
---
## Step 1 — Install
```bash npm install @neo4j/graphql neo4j-driver graphql @apollo/server ```
For subscriptions (CDC required): ```bash npm install ws graphql-ws express body-parser cors ```
---
## Step 2 — Minimal Server Setup
```javascript import { ApolloServer } from '@apollo/server'; import { startStandaloneServer } from '@apollo/server/standalone'; import { Neo4jGraphQL } from '@neo4j/graphql'; import neo4j from 'neo4j-driver';
const typeDefs = `#graphql type Movie @node { id: ID! @id title: String! actors: [Person!]! @relationship(type: "ACTED_IN", direction: IN) }
type Person @node { id: ID! @id name: String! movies: [Movie!]! @relationship(type: "ACTED_IN", direction: OUT) } `;
const driver = neo4j.driver( process.env.NEO4J_URI, neo4j.auth.basic(process.env.NEO4J_USERNAME, process.env.NEO4J_PASSWORD) );
const neoSchema = new Neo4jGraphQL({ typeDefs, driver });
// assertIndexesAndConstraints syncs @id → UNIQUE constraints; wrap in try/catch await neoSchema.assertIndexesAndConstraints({ options: { create: true } });
const server = new ApolloServer({ schema: await neoSchema.getSchema() });
const { url } = await startStandaloneServer(server, { context: async ({ req }) => ({ token: req.headers.authorization }), listen: { port: 4000 }, }); ```
---
## Key Directives
### @node (v7 required)
```graphql type Product @node { id: ID! @id name: String! }
# Custom label (default = type name) type Article @node(labels: ["Post", "Content"]) { title: String! } ```
### @relationship — Full Syntax
```graphql type Person @node { # direction: OUT = (this)-[:KNOWS]->(other) friends: [Person!]! @relationship(type: "KNOWS", direction: OUT)
# direction: IN = (other)-[:ACTED_IN]->(this) actedIn: [Movie!]! @relationship(type: "ACTED_IN", direction: IN)
# direction: UNDIRECTED = matches both directions (use sparingly — double-counts) colleagues: [Person!]! @relationship(type: "COLLEAGUE_OF", direction: UNDIRECTED)
# Relationship with properties — reference an @relationshipProperties interface reviews: [Movie!]! @relationship(type: "REVIEWED", direction: OUT, properties: "ReviewedProps") }
interface ReviewedProps @relationshipProperties { rating: Int! date: Date } ```
### Querying Relationship Properties — Connection API
For each relationship with `properties:`, a `{field}Connection` field is auto-generated. Access rel properties via `actorsConnection.edges.properties`, not via `actors`:
```graphql query { movies(where: { title: { eq: "The Matrix" } }) { title actorsConnection { edges { properties { role } # maps to @relationshipProperties interface node { name } } } } } ```
### @cypher — Custom Resolver
```graphql type Person @node { name: String!
# columnName must exactly match the RETURN alias — mismatch returns null silently friendCount: Int @cypher( statement: "MATCH (this)-[:KNOWS]->(f:Person) RETURN count(f) AS friendCount" columnName: "friendCount" )
recommendedMovies: [Movie!]! @cypher( statement: """ MATCH (this)-[:WATCHED]->(m:Movie)<-[:WATCHED]-(o:Person)-[:WATCHED]->(rec:Movie) WHERE NOT (this)-[:WATCHED]->(rec) RETURN rec """ columnName: "rec" ) }
# @cypher on Query field — custom top-level query type Query { topRatedMovies(limit: Int = 10): [Movie!]! @cypher( statement: "MATCH (m:Movie) WHERE m.rating IS NOT NULL RETURN m ORDER BY m.rating DESC LIMIT $limit" columnName: "m" ) } ```
`this` refers to the current node in field-level @cypher. Parameters are passed as `$paramName`.
### @cypher — Field Arguments and extend type
```graphql # extend type adds computed fields without modifying the base type definition extend type Movie @node { avgRating: Float @cypher(statement: "MATCH (this)<-[r:RATED]-(:User) RETURN avg(r.rating) AS result", columnName: "result")
# Field arguments passed as Cypher params; always provide default to avoid null recommended(limit: Int = 3): [Movie!]! @cypher( statement: "MATCH (this)<-[:RATED]-(u:User)-[:RATED]->(rec:Movie) WITH rec, COUNT(u) AS score ORDER BY score DESC RETURN rec LIMIT $limit" columnName: "rec" ) } ```
### @id and @timestamp
```graphql type Post @node { id: ID! @id # auto-generates UUID; creates UNIQUE constraint createdAt: DateTime! @timestamp(operations: [CREATE]) updatedAt: DateTime @timestamp(operations: [CREATE, UPDATE]) title: String! } ```
### @alias — Map GraphQL field to Neo4j property
```graphql type User @node { id: ID! @id email: String! @alias(property: "emailAddress") # GraphQL: email → DB: emailAddress } ```
### @fulltext and @vector
Index must exist in Cypher before use. Phrase-capable `@vector` indexes accept `maxPhraseLength` [7.6.0] to cap embedding cost. Full syntax, generated query shapes, provider config: [references/search-directives.md](references/search-directives.md).
---
## Security — @authentication and @authorization
### Step 1: Configure JWT in constructor
```javascript // Symmetric secret const neoSchema = new Neo4jGraphQL({ typeDefs, driver, features: { authorization: { key: process.env.JWT_SECRET }, }, });
// JWKS endpoint (production) const neoSchema = new Neo4jGraphQL({ typeDefs, driver, features: { authorization: { key: { url: 'https://myapp.com/.well-known/jwks.json' }, }, }, }); ```
### Step 2: Pass token in context
```javascript context: async ({ req }) => ({ token: req.headers.authorization }), // Or pass pre-decoded JWT: context: async ({ req }) => ({ jwt: myDecodeJwt(req.headers.authorization) }), ```
### Step 3: Apply @authentication and @authorization
```graphql # Require auth on all operations for a type type Post @node @authentication @authorization(filter: [{ where: { node: { author: { id: { eq: "$jwt.sub" } } } } }]) { title: String! author: User! @relationship(type: "AUTHORED", direction: IN) }
# requireAuthentication: false = allow public access without JWT type Article @node @authorization(filter: [ { requireAuthentication: false, where: { node: { published: { eq: true } } } } { where: { node: { author: { id: { eq: "$jwt.sub" } } } } } ]) { title: String! published: Boolean! }
# validate (throws error) vs filter (silently hides data) type BankAccount @node @authorization(validate: [{ when: [BEFORE], where: { node: { owner: { id: { eq: "$jwt.sub" } } } } }]) { balance: Float! }
# Role-based with custom JWT claims type JWT @jwt { roles: [String!]! @jwtClaim(path: "myApp.roles") }
type AdminReport @node @authentication(operations: [READ], jwt: { roles: { includes: "admin" } }) { data: String! } ```
**BEFORE vs AFTER**: `CREATE` supports only `AFTER`; `READ` supports only `BEFORE`.
---
## Auto-Generated Operations
| Operation | Generated Name | Example | |---|---|---| | Query all | `{plural}` | `movies(where, sort, limit, offset)` | | Cursor pagination | `{plural}Connection` | `moviesConnection(first, after, where, sort)` | | Create | `create{Plural}` | `createMovies(input: [MovieCreateInput!]!)` | | Update | `update{Plural}` | `updateMovies(where, update)` | | Delete | `delete{Plural}` | `deleteMovies(where, delete)` |
### v7 Filter Syntax (explicit `eq`)
```graphql # v7: explicit eq required query { movies(where: { title: { eq: "The Matrix" } }) { title actors { name } } }
# Sort and paginate (v7: direct args, not options wrapper) query { movies(sort: [{ title: ASC }], limit: 10, offset: 0) { title } } ```
### Nested Mutations
```graphql mutation { createMovies(input: [{ title: "Inception" actors: { create: [{ node: { name: "Leonardo DiCaprio" } }] connect: { where: { node: { name: { eq: "Joseph Gordon-Levitt" } } } } } }]) { movies { id title } } } ```
---
## OGM — Programmatic Access
OGM bypasses GraphQL authorization — use only in trusted server-side contexts.
```javascript import { OGM } from '@neo4j/graphql-ogm';
const ogm = new OGM({ typeDefs, driver }); await ogm.init(); // must await before using models
const Movie = ogm.model('Movie');
// find const movies = await Movie.find({ where: { title: { eq: 'The Matrix' } }, selectionSet: `{ id title actors { name } }`, });
// create const { movies: created } = await Movie.create({ input: [{ title: 'Dune', actors: { create: [{ node: { name: 'Timothée Chalamet' } }] } }], });
// update await Movie.update({ where: { id: { eq: movieId } }, update: { title: { set: 'Dune: Part One' } }, });
// delete await Movie.delete({ where: { id: { eq: movieId } } }); ```
Install separately: `npm install @neo4j/graphql-ogm`
---
## Subscriptions (CDC Required)
Requires Neo4j CDC enabled in `FULL` mode. See [CDC docs](https://neo4j.com/docs/cdc/current/).
```javascript const neoSchema = new Neo4jGraphQL({ typeDefs, driver, features: { subscriptions: true }, }); ```
Authenticate subscriptions with a verified `token` in the WebSocket context; a pre-decoded `jwt` is trusted only when set server-side (7.5.6 / 5.12.14 stopped trusting client-supplied `connectionParams` JWTs).
```graphql subscription { movieCreated(where: { title: { eq: "The Matrix" } }) { createdMovie { title } } } # Also: movieUpdated, movieDeleted ```
---
## Schema Control Directives
```graphql type ReadOnlyData @node @mutation(operations: []) { value: String! } # disable mutations
type HeavyDoc @node { id: ID! @id content: String! @filterable(byValue: false) @sortable(enabled: false) # perf guard title: String! }
type Series @node @plural(value: "seriesList") { title: String! } # irregular plural fix ```
---
## Common Errors
| Error | Cause | Fix | |---|---|---| | `Type 'X' not found` | Missing `@node` on type (v7)
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for neo4j-graphql-skill, ready for a manual X post.
neo4j-graphql-skill: Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS). 106 stars https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=x
Listing + install path for neo4j-graphql-skill: https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=x Install: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to neo4j-contrib but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill/audit)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)neo4j-contrib
@neo4j-contrib
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
174.2K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
84.4K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
174.2K StarsAnthropic Brand Guidelines
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
174.2K StarsSandbox only
Install targets
Codex install prompt
Install the "neo4j-graphql-skill" agent skill from https://github.com/neo4j-contrib/neo4j-skills/tree/main/neo4j-graphql-skill. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS). After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"neo4j-contrib-neo4j-graphql-skill","task":"Install neo4j-graphql-skill","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
RAG and knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Agent fit
Claude Code + Cursor + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Maintenance
fresh
5d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
106
67/100 Quality · 72/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
106 GitHub stars
Repo activity
106 stars, 36 forks
Maintenance
5d since push
License
MIT
Install
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skillDo not use when
Alternative
174.2K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
84.4K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
174.2K Stars
npx skills add anthropics/skills --skill canvas-design
Alternative
174.2K Stars
npx skills add anthropics/skills --skill brand-guidelines
Agent safety v2
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20neo4j-graphql-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20neo4j-graphql-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/neo4j-contrib-neo4j-graphql-skill/install
Agent should check
Copy prompt
Task: Use neo4j-graphql-skill in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20neo4j-graphql-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-graphql-skill/install
Install command: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/neo4j-contrib-neo4j-graphql-skill/install
LLM text format
/api/skills/neo4j-contrib-neo4j-graphql-skill/install?format=text
Find alternatives
/api/skills/search?q=neo4j-graphql-skill&limit=3
Agent prompt
Use neo4j-graphql-skill for this task. Review https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-graphql-skill/install, then install with: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skillRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/neo4j-contrib-neo4j-graphql-skill
LLM text
/api/registry/manifest/neo4j-contrib-neo4j-graphql-skill?format=text
Install alias
/api/registry/install/neo4j-contrib-neo4j-graphql-skill
Recommend
/api/registry/recommend?task=Use%20neo4j-graphql-skill%20in%20an%20agent%20workflow&limit=3
Agent fit
RAG and knowledge
Use-case tags
Platforms
Claude Code, Cursor
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
RAG and knowledge
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO106 GitHub stars
Stars/forks activity
CHECK106 stars, 36 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Workflow fit
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
--- name: neo4j-graphql-skill description: 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. version: 1.0.4 allowed-tools: Bash WebFetch ---
## 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 | Status | Notes | |---|---|---| | v7 | Current — use ≥ 7.6.0 | `@node` required; `options` removed; explicit `eq` syntax | | v5 | LTS — use ≥ 5.12.15 | Older syntax; `options: {limit, offset, sort}` still valid |
Default to v7 unless codebase is on v5.
Security patches — upgrade before shipping auth:
| Fix | Fixed in | |---|---| | Subscriptions accepted an unverified JWT from WebSocket `connectionParams` (auth/authz bypass) | 7.5.6 / 5.12.14 | | Field-level `@authentication` on a root custom-resolver field ignored when the operation type also had type-level `@authentication` (privilege escalation) | 7.6.0 / 5.12.15 |
---
## Step 1 — Install
```bash npm install @neo4j/graphql neo4j-driver graphql @apollo/server ```
For subscriptions (CDC required): ```bash npm install ws graphql-ws express body-parser cors ```
---
## Step 2 — Minimal Server Setup
```javascript import { ApolloServer } from '@apollo/server'; import { startStandaloneServer } from '@apollo/server/standalone'; import { Neo4jGraphQL } from '@neo4j/graphql'; import neo4j from 'neo4j-driver';
const typeDefs = `#graphql type Movie @node { id: ID! @id title: String! actors: [Person!]! @relationship(type: "ACTED_IN", direction: IN) }
type Person @node { id: ID! @id name: String! movies: [Movie!]! @relationship(type: "ACTED_IN", direction: OUT) } `;
const driver = neo4j.driver( process.env.NEO4J_URI, neo4j.auth.basic(process.env.NEO4J_USERNAME, process.env.NEO4J_PASSWORD) );
const neoSchema = new Neo4jGraphQL({ typeDefs, driver });
// assertIndexesAndConstraints syncs @id → UNIQUE constraints; wrap in try/catch await neoSchema.assertIndexesAndConstraints({ options: { create: true } });
const server = new ApolloServer({ schema: await neoSchema.getSchema() });
const { url } = await startStandaloneServer(server, { context: async ({ req }) => ({ token: req.headers.authorization }), listen: { port: 4000 }, }); ```
---
## Key Directives
### @node (v7 required)
```graphql type Product @node { id: ID! @id name: String! }
# Custom label (default = type name) type Article @node(labels: ["Post", "Content"]) { title: String! } ```
### @relationship — Full Syntax
```graphql type Person @node { # direction: OUT = (this)-[:KNOWS]->(other) friends: [Person!]! @relationship(type: "KNOWS", direction: OUT)
# direction: IN = (other)-[:ACTED_IN]->(this) actedIn: [Movie!]! @relationship(type: "ACTED_IN", direction: IN)
# direction: UNDIRECTED = matches both directions (use sparingly — double-counts) colleagues: [Person!]! @relationship(type: "COLLEAGUE_OF", direction: UNDIRECTED)
# Relationship with properties — reference an @relationshipProperties interface reviews: [Movie!]! @relationship(type: "REVIEWED", direction: OUT, properties: "ReviewedProps") }
interface ReviewedProps @relationshipProperties { rating: Int! date: Date } ```
### Querying Relationship Properties — Connection API
For each relationship with `properties:`, a `{field}Connection` field is auto-generated. Access rel properties via `actorsConnection.edges.properties`, not via `actors`:
```graphql query { movies(where: { title: { eq: "The Matrix" } }) { title actorsConnection { edges { properties { role } # maps to @relationshipProperties interface node { name } } } } } ```
### @cypher — Custom Resolver
```graphql type Person @node { name: String!
# columnName must exactly match the RETURN alias — mismatch returns null silently friendCount: Int @cypher( statement: "MATCH (this)-[:KNOWS]->(f:Person) RETURN count(f) AS friendCount" columnName: "friendCount" )
recommendedMovies: [Movie!]! @cypher( statement: """ MATCH (this)-[:WATCHED]->(m:Movie)<-[:WATCHED]-(o:Person)-[:WATCHED]->(rec:Movie) WHERE NOT (this)-[:WATCHED]->(rec) RETURN rec """ columnName: "rec" ) }
# @cypher on Query field — custom top-level query type Query { topRatedMovies(limit: Int = 10): [Movie!]! @cypher( statement: "MATCH (m:Movie) WHERE m.rating IS NOT NULL RETURN m ORDER BY m.rating DESC LIMIT $limit" columnName: "m" ) } ```
`this` refers to the current node in field-level @cypher. Parameters are passed as `$paramName`.
### @cypher — Field Arguments and extend type
```graphql # extend type adds computed fields without modifying the base type definition extend type Movie @node { avgRating: Float @cypher(statement: "MATCH (this)<-[r:RATED]-(:User) RETURN avg(r.rating) AS result", columnName: "result")
# Field arguments passed as Cypher params; always provide default to avoid null recommended(limit: Int = 3): [Movie!]! @cypher( statement: "MATCH (this)<-[:RATED]-(u:User)-[:RATED]->(rec:Movie) WITH rec, COUNT(u) AS score ORDER BY score DESC RETURN rec LIMIT $limit" columnName: "rec" ) } ```
### @id and @timestamp
```graphql type Post @node { id: ID! @id # auto-generates UUID; creates UNIQUE constraint createdAt: DateTime! @timestamp(operations: [CREATE]) updatedAt: DateTime @timestamp(operations: [CREATE, UPDATE]) title: String! } ```
### @alias — Map GraphQL field to Neo4j property
```graphql type User @node { id: ID! @id email: String! @alias(property: "emailAddress") # GraphQL: email → DB: emailAddress } ```
### @fulltext and @vector
Index must exist in Cypher before use. Phrase-capable `@vector` indexes accept `maxPhraseLength` [7.6.0] to cap embedding cost. Full syntax, generated query shapes, provider config: [references/search-directives.md](references/search-directives.md).
---
## Security — @authentication and @authorization
### Step 1: Configure JWT in constructor
```javascript // Symmetric secret const neoSchema = new Neo4jGraphQL({ typeDefs, driver, features: { authorization: { key: process.env.JWT_SECRET }, }, });
// JWKS endpoint (production) const neoSchema = new Neo4jGraphQL({ typeDefs, driver, features: { authorization: { key: { url: 'https://myapp.com/.well-known/jwks.json' }, }, }, }); ```
### Step 2: Pass token in context
```javascript context: async ({ req }) => ({ token: req.headers.authorization }), // Or pass pre-decoded JWT: context: async ({ req }) => ({ jwt: myDecodeJwt(req.headers.authorization) }), ```
### Step 3: Apply @authentication and @authorization
```graphql # Require auth on all operations for a type type Post @node @authentication @authorization(filter: [{ where: { node: { author: { id: { eq: "$jwt.sub" } } } } }]) { title: String! author: User! @relationship(type: "AUTHORED", direction: IN) }
# requireAuthentication: false = allow public access without JWT type Article @node @authorization(filter: [ { requireAuthentication: false, where: { node: { published: { eq: true } } } } { where: { node: { author: { id: { eq: "$jwt.sub" } } } } } ]) { title: String! published: Boolean! }
# validate (throws error) vs filter (silently hides data) type BankAccount @node @authorization(validate: [{ when: [BEFORE], where: { node: { owner: { id: { eq: "$jwt.sub" } } } } }]) { balance: Float! }
# Role-based with custom JWT claims type JWT @jwt { roles: [String!]! @jwtClaim(path: "myApp.roles") }
type AdminReport @node @authentication(operations: [READ], jwt: { roles: { includes: "admin" } }) { data: String! } ```
**BEFORE vs AFTER**: `CREATE` supports only `AFTER`; `READ` supports only `BEFORE`.
---
## Auto-Generated Operations
| Operation | Generated Name | Example | |---|---|---| | Query all | `{plural}` | `movies(where, sort, limit, offset)` | | Cursor pagination | `{plural}Connection` | `moviesConnection(first, after, where, sort)` | | Create | `create{Plural}` | `createMovies(input: [MovieCreateInput!]!)` | | Update | `update{Plural}` | `updateMovies(where, update)` | | Delete | `delete{Plural}` | `deleteMovies(where, delete)` |
### v7 Filter Syntax (explicit `eq`)
```graphql # v7: explicit eq required query { movies(where: { title: { eq: "The Matrix" } }) { title actors { name } } }
# Sort and paginate (v7: direct args, not options wrapper) query { movies(sort: [{ title: ASC }], limit: 10, offset: 0) { title } } ```
### Nested Mutations
```graphql mutation { createMovies(input: [{ title: "Inception" actors: { create: [{ node: { name: "Leonardo DiCaprio" } }] connect: { where: { node: { name: { eq: "Joseph Gordon-Levitt" } } } } } }]) { movies { id title } } } ```
---
## OGM — Programmatic Access
OGM bypasses GraphQL authorization — use only in trusted server-side contexts.
```javascript import { OGM } from '@neo4j/graphql-ogm';
const ogm = new OGM({ typeDefs, driver }); await ogm.init(); // must await before using models
const Movie = ogm.model('Movie');
// find const movies = await Movie.find({ where: { title: { eq: 'The Matrix' } }, selectionSet: `{ id title actors { name } }`, });
// create const { movies: created } = await Movie.create({ input: [{ title: 'Dune', actors: { create: [{ node: { name: 'Timothée Chalamet' } }] } }], });
// update await Movie.update({ where: { id: { eq: movieId } }, update: { title: { set: 'Dune: Part One' } }, });
// delete await Movie.delete({ where: { id: { eq: movieId } } }); ```
Install separately: `npm install @neo4j/graphql-ogm`
---
## Subscriptions (CDC Required)
Requires Neo4j CDC enabled in `FULL` mode. See [CDC docs](https://neo4j.com/docs/cdc/current/).
```javascript const neoSchema = new Neo4jGraphQL({ typeDefs, driver, features: { subscriptions: true }, }); ```
Authenticate subscriptions with a verified `token` in the WebSocket context; a pre-decoded `jwt` is trusted only when set server-side (7.5.6 / 5.12.14 stopped trusting client-supplied `connectionParams` JWTs).
```graphql subscription { movieCreated(where: { title: { eq: "The Matrix" } }) { createdMovie { title } } } # Also: movieUpdated, movieDeleted ```
---
## Schema Control Directives
```graphql type ReadOnlyData @node @mutation(operations: []) { value: String! } # disable mutations
type HeavyDoc @node { id: ID! @id content: String! @filterable(byValue: false) @sortable(enabled: false) # perf guard title: String! }
type Series @node @plural(value: "seriesList") { title: String! } # irregular plural fix ```
---
## Common Errors
| Error | Cause | Fix | |---|---|---| | `Type 'X' not found` | Missing `@node` on type (v7)
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for neo4j-graphql-skill, ready for a manual X post.
neo4j-graphql-skill: Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS). 106 stars https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=x
Listing + install path for neo4j-graphql-skill: https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=x Install: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to neo4j-contrib but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill/audit)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)neo4j-contrib
@neo4j-contrib
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
174.2K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
84.4K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
174.2K StarsAnthropic Brand Guidelines
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
174.2K StarsSandbox only
Install targets
Codex install prompt
Install the "neo4j-graphql-skill" agent skill from https://github.com/neo4j-contrib/neo4j-skills/tree/main/neo4j-graphql-skill. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS). After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"neo4j-contrib-neo4j-graphql-skill","task":"Install neo4j-graphql-skill","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
RAG and knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Agent fit
Claude Code + Cursor + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Maintenance
fresh
5d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
106
67/100 Quality · 72/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
106 GitHub stars
Repo activity
106 stars, 36 forks
Maintenance
5d since push
License
MIT
Install
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skillDo not use when
Alternative
174.2K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
84.4K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
174.2K Stars
npx skills add anthropics/skills --skill canvas-design
Alternative
174.2K Stars
npx skills add anthropics/skills --skill brand-guidelines
Agent safety v2
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20neo4j-graphql-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20neo4j-graphql-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/neo4j-contrib-neo4j-graphql-skill/install
Agent should check
Copy prompt
Task: Use neo4j-graphql-skill in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20neo4j-graphql-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-graphql-skill/install
Install command: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/neo4j-contrib-neo4j-graphql-skill/install
LLM text format
/api/skills/neo4j-contrib-neo4j-graphql-skill/install?format=text
Find alternatives
/api/skills/search?q=neo4j-graphql-skill&limit=3
Agent prompt
Use neo4j-graphql-skill for this task. Review https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-graphql-skill/install, then install with: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skillRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/neo4j-contrib-neo4j-graphql-skill
LLM text
/api/registry/manifest/neo4j-contrib-neo4j-graphql-skill?format=text
Install alias
/api/registry/install/neo4j-contrib-neo4j-graphql-skill
Recommend
/api/registry/recommend?task=Use%20neo4j-graphql-skill%20in%20an%20agent%20workflow&limit=3
Agent fit
RAG and knowledge
Use-case tags
Platforms
Claude Code, Cursor
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
RAG and knowledge
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO106 GitHub stars
Stars/forks activity
CHECK106 stars, 36 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Workflow fit
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
--- name: neo4j-graphql-skill description: 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. version: 1.0.4 allowed-tools: Bash WebFetch ---
## 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 | Status | Notes | |---|---|---| | v7 | Current — use ≥ 7.6.0 | `@node` required; `options` removed; explicit `eq` syntax | | v5 | LTS — use ≥ 5.12.15 | Older syntax; `options: {limit, offset, sort}` still valid |
Default to v7 unless codebase is on v5.
Security patches — upgrade before shipping auth:
| Fix | Fixed in | |---|---| | Subscriptions accepted an unverified JWT from WebSocket `connectionParams` (auth/authz bypass) | 7.5.6 / 5.12.14 | | Field-level `@authentication` on a root custom-resolver field ignored when the operation type also had type-level `@authentication` (privilege escalation) | 7.6.0 / 5.12.15 |
---
## Step 1 — Install
```bash npm install @neo4j/graphql neo4j-driver graphql @apollo/server ```
For subscriptions (CDC required): ```bash npm install ws graphql-ws express body-parser cors ```
---
## Step 2 — Minimal Server Setup
```javascript import { ApolloServer } from '@apollo/server'; import { startStandaloneServer } from '@apollo/server/standalone'; import { Neo4jGraphQL } from '@neo4j/graphql'; import neo4j from 'neo4j-driver';
const typeDefs = `#graphql type Movie @node { id: ID! @id title: String! actors: [Person!]! @relationship(type: "ACTED_IN", direction: IN) }
type Person @node { id: ID! @id name: String! movies: [Movie!]! @relationship(type: "ACTED_IN", direction: OUT) } `;
const driver = neo4j.driver( process.env.NEO4J_URI, neo4j.auth.basic(process.env.NEO4J_USERNAME, process.env.NEO4J_PASSWORD) );
const neoSchema = new Neo4jGraphQL({ typeDefs, driver });
// assertIndexesAndConstraints syncs @id → UNIQUE constraints; wrap in try/catch await neoSchema.assertIndexesAndConstraints({ options: { create: true } });
const server = new ApolloServer({ schema: await neoSchema.getSchema() });
const { url } = await startStandaloneServer(server, { context: async ({ req }) => ({ token: req.headers.authorization }), listen: { port: 4000 }, }); ```
---
## Key Directives
### @node (v7 required)
```graphql type Product @node { id: ID! @id name: String! }
# Custom label (default = type name) type Article @node(labels: ["Post", "Content"]) { title: String! } ```
### @relationship — Full Syntax
```graphql type Person @node { # direction: OUT = (this)-[:KNOWS]->(other) friends: [Person!]! @relationship(type: "KNOWS", direction: OUT)
# direction: IN = (other)-[:ACTED_IN]->(this) actedIn: [Movie!]! @relationship(type: "ACTED_IN", direction: IN)
# direction: UNDIRECTED = matches both directions (use sparingly — double-counts) colleagues: [Person!]! @relationship(type: "COLLEAGUE_OF", direction: UNDIRECTED)
# Relationship with properties — reference an @relationshipProperties interface reviews: [Movie!]! @relationship(type: "REVIEWED", direction: OUT, properties: "ReviewedProps") }
interface ReviewedProps @relationshipProperties { rating: Int! date: Date } ```
### Querying Relationship Properties — Connection API
For each relationship with `properties:`, a `{field}Connection` field is auto-generated. Access rel properties via `actorsConnection.edges.properties`, not via `actors`:
```graphql query { movies(where: { title: { eq: "The Matrix" } }) { title actorsConnection { edges { properties { role } # maps to @relationshipProperties interface node { name } } } } } ```
### @cypher — Custom Resolver
```graphql type Person @node { name: String!
# columnName must exactly match the RETURN alias — mismatch returns null silently friendCount: Int @cypher( statement: "MATCH (this)-[:KNOWS]->(f:Person) RETURN count(f) AS friendCount" columnName: "friendCount" )
recommendedMovies: [Movie!]! @cypher( statement: """ MATCH (this)-[:WATCHED]->(m:Movie)<-[:WATCHED]-(o:Person)-[:WATCHED]->(rec:Movie) WHERE NOT (this)-[:WATCHED]->(rec) RETURN rec """ columnName: "rec" ) }
# @cypher on Query field — custom top-level query type Query { topRatedMovies(limit: Int = 10): [Movie!]! @cypher( statement: "MATCH (m:Movie) WHERE m.rating IS NOT NULL RETURN m ORDER BY m.rating DESC LIMIT $limit" columnName: "m" ) } ```
`this` refers to the current node in field-level @cypher. Parameters are passed as `$paramName`.
### @cypher — Field Arguments and extend type
```graphql # extend type adds computed fields without modifying the base type definition extend type Movie @node { avgRating: Float @cypher(statement: "MATCH (this)<-[r:RATED]-(:User) RETURN avg(r.rating) AS result", columnName: "result")
# Field arguments passed as Cypher params; always provide default to avoid null recommended(limit: Int = 3): [Movie!]! @cypher( statement: "MATCH (this)<-[:RATED]-(u:User)-[:RATED]->(rec:Movie) WITH rec, COUNT(u) AS score ORDER BY score DESC RETURN rec LIMIT $limit" columnName: "rec" ) } ```
### @id and @timestamp
```graphql type Post @node { id: ID! @id # auto-generates UUID; creates UNIQUE constraint createdAt: DateTime! @timestamp(operations: [CREATE]) updatedAt: DateTime @timestamp(operations: [CREATE, UPDATE]) title: String! } ```
### @alias — Map GraphQL field to Neo4j property
```graphql type User @node { id: ID! @id email: String! @alias(property: "emailAddress") # GraphQL: email → DB: emailAddress } ```
### @fulltext and @vector
Index must exist in Cypher before use. Phrase-capable `@vector` indexes accept `maxPhraseLength` [7.6.0] to cap embedding cost. Full syntax, generated query shapes, provider config: [references/search-directives.md](references/search-directives.md).
---
## Security — @authentication and @authorization
### Step 1: Configure JWT in constructor
```javascript // Symmetric secret const neoSchema = new Neo4jGraphQL({ typeDefs, driver, features: { authorization: { key: process.env.JWT_SECRET }, }, });
// JWKS endpoint (production) const neoSchema = new Neo4jGraphQL({ typeDefs, driver, features: { authorization: { key: { url: 'https://myapp.com/.well-known/jwks.json' }, }, }, }); ```
### Step 2: Pass token in context
```javascript context: async ({ req }) => ({ token: req.headers.authorization }), // Or pass pre-decoded JWT: context: async ({ req }) => ({ jwt: myDecodeJwt(req.headers.authorization) }), ```
### Step 3: Apply @authentication and @authorization
```graphql # Require auth on all operations for a type type Post @node @authentication @authorization(filter: [{ where: { node: { author: { id: { eq: "$jwt.sub" } } } } }]) { title: String! author: User! @relationship(type: "AUTHORED", direction: IN) }
# requireAuthentication: false = allow public access without JWT type Article @node @authorization(filter: [ { requireAuthentication: false, where: { node: { published: { eq: true } } } } { where: { node: { author: { id: { eq: "$jwt.sub" } } } } } ]) { title: String! published: Boolean! }
# validate (throws error) vs filter (silently hides data) type BankAccount @node @authorization(validate: [{ when: [BEFORE], where: { node: { owner: { id: { eq: "$jwt.sub" } } } } }]) { balance: Float! }
# Role-based with custom JWT claims type JWT @jwt { roles: [String!]! @jwtClaim(path: "myApp.roles") }
type AdminReport @node @authentication(operations: [READ], jwt: { roles: { includes: "admin" } }) { data: String! } ```
**BEFORE vs AFTER**: `CREATE` supports only `AFTER`; `READ` supports only `BEFORE`.
---
## Auto-Generated Operations
| Operation | Generated Name | Example | |---|---|---| | Query all | `{plural}` | `movies(where, sort, limit, offset)` | | Cursor pagination | `{plural}Connection` | `moviesConnection(first, after, where, sort)` | | Create | `create{Plural}` | `createMovies(input: [MovieCreateInput!]!)` | | Update | `update{Plural}` | `updateMovies(where, update)` | | Delete | `delete{Plural}` | `deleteMovies(where, delete)` |
### v7 Filter Syntax (explicit `eq`)
```graphql # v7: explicit eq required query { movies(where: { title: { eq: "The Matrix" } }) { title actors { name } } }
# Sort and paginate (v7: direct args, not options wrapper) query { movies(sort: [{ title: ASC }], limit: 10, offset: 0) { title } } ```
### Nested Mutations
```graphql mutation { createMovies(input: [{ title: "Inception" actors: { create: [{ node: { name: "Leonardo DiCaprio" } }] connect: { where: { node: { name: { eq: "Joseph Gordon-Levitt" } } } } } }]) { movies { id title } } } ```
---
## OGM — Programmatic Access
OGM bypasses GraphQL authorization — use only in trusted server-side contexts.
```javascript import { OGM } from '@neo4j/graphql-ogm';
const ogm = new OGM({ typeDefs, driver }); await ogm.init(); // must await before using models
const Movie = ogm.model('Movie');
// find const movies = await Movie.find({ where: { title: { eq: 'The Matrix' } }, selectionSet: `{ id title actors { name } }`, });
// create const { movies: created } = await Movie.create({ input: [{ title: 'Dune', actors: { create: [{ node: { name: 'Timothée Chalamet' } }] } }], });
// update await Movie.update({ where: { id: { eq: movieId } }, update: { title: { set: 'Dune: Part One' } }, });
// delete await Movie.delete({ where: { id: { eq: movieId } } }); ```
Install separately: `npm install @neo4j/graphql-ogm`
---
## Subscriptions (CDC Required)
Requires Neo4j CDC enabled in `FULL` mode. See [CDC docs](https://neo4j.com/docs/cdc/current/).
```javascript const neoSchema = new Neo4jGraphQL({ typeDefs, driver, features: { subscriptions: true }, }); ```
Authenticate subscriptions with a verified `token` in the WebSocket context; a pre-decoded `jwt` is trusted only when set server-side (7.5.6 / 5.12.14 stopped trusting client-supplied `connectionParams` JWTs).
```graphql subscription { movieCreated(where: { title: { eq: "The Matrix" } }) { createdMovie { title } } } # Also: movieUpdated, movieDeleted ```
---
## Schema Control Directives
```graphql type ReadOnlyData @node @mutation(operations: []) { value: String! } # disable mutations
type HeavyDoc @node { id: ID! @id content: String! @filterable(byValue: false) @sortable(enabled: false) # perf guard title: String! }
type Series @node @plural(value: "seriesList") { title: String! } # irregular plural fix ```
---
## Common Errors
| Error | Cause | Fix | |---|---|---| | `Type 'X' not found` | Missing `@node` on type (v7)
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for neo4j-graphql-skill, ready for a manual X post.
neo4j-graphql-skill: Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS). 106 stars https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=x
Listing + install path for neo4j-graphql-skill: https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=x Install: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to neo4j-contrib but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill/audit)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)neo4j-contrib
@neo4j-contrib
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
174.2K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
84.4K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
174.2K StarsAnthropic Brand Guidelines
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
174.2K StarsSandbox only
Install targets
Codex install prompt
Install the "neo4j-graphql-skill" agent skill from https://github.com/neo4j-contrib/neo4j-skills/tree/main/neo4j-graphql-skill. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS). After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"neo4j-contrib-neo4j-graphql-skill","task":"Install neo4j-graphql-skill","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
RAG and knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Agent fit
Claude Code + Cursor + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Maintenance
fresh
5d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
106
67/100 Quality · 72/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
106 GitHub stars
Repo activity
106 stars, 36 forks
Maintenance
5d since push
License
MIT
Install
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skillDo not use when
Alternative
174.2K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
84.4K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
174.2K Stars
npx skills add anthropics/skills --skill canvas-design
Alternative
174.2K Stars
npx skills add anthropics/skills --skill brand-guidelines
Agent safety v2
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20neo4j-graphql-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20neo4j-graphql-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/neo4j-contrib-neo4j-graphql-skill/install
Agent should check
Copy prompt
Task: Use neo4j-graphql-skill in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20neo4j-graphql-skill%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-graphql-skill/install
Install command: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/neo4j-contrib-neo4j-graphql-skill/install
LLM text format
/api/skills/neo4j-contrib-neo4j-graphql-skill/install?format=text
Find alternatives
/api/skills/search?q=neo4j-graphql-skill&limit=3
Agent prompt
Use neo4j-graphql-skill for this task. Review https://www.openagentskill.com/api/skills/neo4j-contrib-neo4j-graphql-skill/install, then install with: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skillRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/neo4j-contrib-neo4j-graphql-skill
LLM text
/api/registry/manifest/neo4j-contrib-neo4j-graphql-skill?format=text
Install alias
/api/registry/install/neo4j-contrib-neo4j-graphql-skill
Recommend
/api/registry/recommend?task=Use%20neo4j-graphql-skill%20in%20an%20agent%20workflow&limit=3
Agent fit
RAG and knowledge
Use-case tags
Platforms
Claude Code, Cursor
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
RAG and knowledge
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO106 GitHub stars
Stars/forks activity
CHECK106 stars, 36 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Workflow fit
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
--- name: neo4j-graphql-skill description: 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. version: 1.0.4 allowed-tools: Bash WebFetch ---
## 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 | Status | Notes | |---|---|---| | v7 | Current — use ≥ 7.6.0 | `@node` required; `options` removed; explicit `eq` syntax | | v5 | LTS — use ≥ 5.12.15 | Older syntax; `options: {limit, offset, sort}` still valid |
Default to v7 unless codebase is on v5.
Security patches — upgrade before shipping auth:
| Fix | Fixed in | |---|---| | Subscriptions accepted an unverified JWT from WebSocket `connectionParams` (auth/authz bypass) | 7.5.6 / 5.12.14 | | Field-level `@authentication` on a root custom-resolver field ignored when the operation type also had type-level `@authentication` (privilege escalation) | 7.6.0 / 5.12.15 |
---
## Step 1 — Install
```bash npm install @neo4j/graphql neo4j-driver graphql @apollo/server ```
For subscriptions (CDC required): ```bash npm install ws graphql-ws express body-parser cors ```
---
## Step 2 — Minimal Server Setup
```javascript import { ApolloServer } from '@apollo/server'; import { startStandaloneServer } from '@apollo/server/standalone'; import { Neo4jGraphQL } from '@neo4j/graphql'; import neo4j from 'neo4j-driver';
const typeDefs = `#graphql type Movie @node { id: ID! @id title: String! actors: [Person!]! @relationship(type: "ACTED_IN", direction: IN) }
type Person @node { id: ID! @id name: String! movies: [Movie!]! @relationship(type: "ACTED_IN", direction: OUT) } `;
const driver = neo4j.driver( process.env.NEO4J_URI, neo4j.auth.basic(process.env.NEO4J_USERNAME, process.env.NEO4J_PASSWORD) );
const neoSchema = new Neo4jGraphQL({ typeDefs, driver });
// assertIndexesAndConstraints syncs @id → UNIQUE constraints; wrap in try/catch await neoSchema.assertIndexesAndConstraints({ options: { create: true } });
const server = new ApolloServer({ schema: await neoSchema.getSchema() });
const { url } = await startStandaloneServer(server, { context: async ({ req }) => ({ token: req.headers.authorization }), listen: { port: 4000 }, }); ```
---
## Key Directives
### @node (v7 required)
```graphql type Product @node { id: ID! @id name: String! }
# Custom label (default = type name) type Article @node(labels: ["Post", "Content"]) { title: String! } ```
### @relationship — Full Syntax
```graphql type Person @node { # direction: OUT = (this)-[:KNOWS]->(other) friends: [Person!]! @relationship(type: "KNOWS", direction: OUT)
# direction: IN = (other)-[:ACTED_IN]->(this) actedIn: [Movie!]! @relationship(type: "ACTED_IN", direction: IN)
# direction: UNDIRECTED = matches both directions (use sparingly — double-counts) colleagues: [Person!]! @relationship(type: "COLLEAGUE_OF", direction: UNDIRECTED)
# Relationship with properties — reference an @relationshipProperties interface reviews: [Movie!]! @relationship(type: "REVIEWED", direction: OUT, properties: "ReviewedProps") }
interface ReviewedProps @relationshipProperties { rating: Int! date: Date } ```
### Querying Relationship Properties — Connection API
For each relationship with `properties:`, a `{field}Connection` field is auto-generated. Access rel properties via `actorsConnection.edges.properties`, not via `actors`:
```graphql query { movies(where: { title: { eq: "The Matrix" } }) { title actorsConnection { edges { properties { role } # maps to @relationshipProperties interface node { name } } } } } ```
### @cypher — Custom Resolver
```graphql type Person @node { name: String!
# columnName must exactly match the RETURN alias — mismatch returns null silently friendCount: Int @cypher( statement: "MATCH (this)-[:KNOWS]->(f:Person) RETURN count(f) AS friendCount" columnName: "friendCount" )
recommendedMovies: [Movie!]! @cypher( statement: """ MATCH (this)-[:WATCHED]->(m:Movie)<-[:WATCHED]-(o:Person)-[:WATCHED]->(rec:Movie) WHERE NOT (this)-[:WATCHED]->(rec) RETURN rec """ columnName: "rec" ) }
# @cypher on Query field — custom top-level query type Query { topRatedMovies(limit: Int = 10): [Movie!]! @cypher( statement: "MATCH (m:Movie) WHERE m.rating IS NOT NULL RETURN m ORDER BY m.rating DESC LIMIT $limit" columnName: "m" ) } ```
`this` refers to the current node in field-level @cypher. Parameters are passed as `$paramName`.
### @cypher — Field Arguments and extend type
```graphql # extend type adds computed fields without modifying the base type definition extend type Movie @node { avgRating: Float @cypher(statement: "MATCH (this)<-[r:RATED]-(:User) RETURN avg(r.rating) AS result", columnName: "result")
# Field arguments passed as Cypher params; always provide default to avoid null recommended(limit: Int = 3): [Movie!]! @cypher( statement: "MATCH (this)<-[:RATED]-(u:User)-[:RATED]->(rec:Movie) WITH rec, COUNT(u) AS score ORDER BY score DESC RETURN rec LIMIT $limit" columnName: "rec" ) } ```
### @id and @timestamp
```graphql type Post @node { id: ID! @id # auto-generates UUID; creates UNIQUE constraint createdAt: DateTime! @timestamp(operations: [CREATE]) updatedAt: DateTime @timestamp(operations: [CREATE, UPDATE]) title: String! } ```
### @alias — Map GraphQL field to Neo4j property
```graphql type User @node { id: ID! @id email: String! @alias(property: "emailAddress") # GraphQL: email → DB: emailAddress } ```
### @fulltext and @vector
Index must exist in Cypher before use. Phrase-capable `@vector` indexes accept `maxPhraseLength` [7.6.0] to cap embedding cost. Full syntax, generated query shapes, provider config: [references/search-directives.md](references/search-directives.md).
---
## Security — @authentication and @authorization
### Step 1: Configure JWT in constructor
```javascript // Symmetric secret const neoSchema = new Neo4jGraphQL({ typeDefs, driver, features: { authorization: { key: process.env.JWT_SECRET }, }, });
// JWKS endpoint (production) const neoSchema = new Neo4jGraphQL({ typeDefs, driver, features: { authorization: { key: { url: 'https://myapp.com/.well-known/jwks.json' }, }, }, }); ```
### Step 2: Pass token in context
```javascript context: async ({ req }) => ({ token: req.headers.authorization }), // Or pass pre-decoded JWT: context: async ({ req }) => ({ jwt: myDecodeJwt(req.headers.authorization) }), ```
### Step 3: Apply @authentication and @authorization
```graphql # Require auth on all operations for a type type Post @node @authentication @authorization(filter: [{ where: { node: { author: { id: { eq: "$jwt.sub" } } } } }]) { title: String! author: User! @relationship(type: "AUTHORED", direction: IN) }
# requireAuthentication: false = allow public access without JWT type Article @node @authorization(filter: [ { requireAuthentication: false, where: { node: { published: { eq: true } } } } { where: { node: { author: { id: { eq: "$jwt.sub" } } } } } ]) { title: String! published: Boolean! }
# validate (throws error) vs filter (silently hides data) type BankAccount @node @authorization(validate: [{ when: [BEFORE], where: { node: { owner: { id: { eq: "$jwt.sub" } } } } }]) { balance: Float! }
# Role-based with custom JWT claims type JWT @jwt { roles: [String!]! @jwtClaim(path: "myApp.roles") }
type AdminReport @node @authentication(operations: [READ], jwt: { roles: { includes: "admin" } }) { data: String! } ```
**BEFORE vs AFTER**: `CREATE` supports only `AFTER`; `READ` supports only `BEFORE`.
---
## Auto-Generated Operations
| Operation | Generated Name | Example | |---|---|---| | Query all | `{plural}` | `movies(where, sort, limit, offset)` | | Cursor pagination | `{plural}Connection` | `moviesConnection(first, after, where, sort)` | | Create | `create{Plural}` | `createMovies(input: [MovieCreateInput!]!)` | | Update | `update{Plural}` | `updateMovies(where, update)` | | Delete | `delete{Plural}` | `deleteMovies(where, delete)` |
### v7 Filter Syntax (explicit `eq`)
```graphql # v7: explicit eq required query { movies(where: { title: { eq: "The Matrix" } }) { title actors { name } } }
# Sort and paginate (v7: direct args, not options wrapper) query { movies(sort: [{ title: ASC }], limit: 10, offset: 0) { title } } ```
### Nested Mutations
```graphql mutation { createMovies(input: [{ title: "Inception" actors: { create: [{ node: { name: "Leonardo DiCaprio" } }] connect: { where: { node: { name: { eq: "Joseph Gordon-Levitt" } } } } } }]) { movies { id title } } } ```
---
## OGM — Programmatic Access
OGM bypasses GraphQL authorization — use only in trusted server-side contexts.
```javascript import { OGM } from '@neo4j/graphql-ogm';
const ogm = new OGM({ typeDefs, driver }); await ogm.init(); // must await before using models
const Movie = ogm.model('Movie');
// find const movies = await Movie.find({ where: { title: { eq: 'The Matrix' } }, selectionSet: `{ id title actors { name } }`, });
// create const { movies: created } = await Movie.create({ input: [{ title: 'Dune', actors: { create: [{ node: { name: 'Timothée Chalamet' } }] } }], });
// update await Movie.update({ where: { id: { eq: movieId } }, update: { title: { set: 'Dune: Part One' } }, });
// delete await Movie.delete({ where: { id: { eq: movieId } } }); ```
Install separately: `npm install @neo4j/graphql-ogm`
---
## Subscriptions (CDC Required)
Requires Neo4j CDC enabled in `FULL` mode. See [CDC docs](https://neo4j.com/docs/cdc/current/).
```javascript const neoSchema = new Neo4jGraphQL({ typeDefs, driver, features: { subscriptions: true }, }); ```
Authenticate subscriptions with a verified `token` in the WebSocket context; a pre-decoded `jwt` is trusted only when set server-side (7.5.6 / 5.12.14 stopped trusting client-supplied `connectionParams` JWTs).
```graphql subscription { movieCreated(where: { title: { eq: "The Matrix" } }) { createdMovie { title } } } # Also: movieUpdated, movieDeleted ```
---
## Schema Control Directives
```graphql type ReadOnlyData @node @mutation(operations: []) { value: String! } # disable mutations
type HeavyDoc @node { id: ID! @id content: String! @filterable(byValue: false) @sortable(enabled: false) # perf guard title: String! }
type Series @node @plural(value: "seriesList") { title: String! } # irregular plural fix ```
---
## Common Errors
| Error | Cause | Fix | |---|---|---| | `Type 'X' not found` | Missing `@node` on type (v7)
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for neo4j-graphql-skill, ready for a manual X post.
neo4j-graphql-skill: Build and configure a GraphQL API backed by Neo4j using @neo4j/graphql v7 (current) or v5 (LTS). 106 stars https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=x
Listing + install path for neo4j-graphql-skill: https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=x Install: npx skills add neo4j-contrib/neo4j-skills --skill neo4j-graphql-skill
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to neo4j-contrib but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill/audit)
[](https://www.openagentskill.com/skills/neo4j-contrib-neo4j-graphql-skill?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)neo4j-contrib
@neo4j-contrib
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
174.2K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
84.4K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
174.2K StarsAnthropic Brand Guidelines
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
174.2K StarsPermission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness