specs / neo4j / v0.1
neo4j v0.1
Neo4j GraphQL model directives with optional Mesh subgraph attribution.
1Overview
Neo4j GraphQL model directives with optional Mesh subgraph attribution.
https://specs.graphql-mesh.dev/neo4j/v0.1
ยท raw GraphQL
Stamp: meshSpecUrl('neo4j') in packages/loaders/neo4j.
extend schema
@link(
url: "https://specs.graphql-mesh.dev/neo4j/v0.1"
import: ["@node", "@relationship", "@relationshipProperties", "@alias", "@cypher", "@plural"]
)
- Mesh adds optional subgraph: for multi-source attribution; strip before handing model SDL to @neo4j/graphql.
2Schema additions
2.1_RelationDirections
enum _RelationDirections {
IN
OUT
}3Directives
3.1@node
directive @node(subgraph: String, labels: [String!]) on OBJECT3.1.1subgraph: String, labels: [String!]
3.2@relationshipProperties
directive @relationshipProperties(subgraph: String) on OBJECT3.2.1subgraph: String
3.3@relationship
directive @relationship(
subgraph: String
type: String
direction: _RelationDirections
properties: String
) on FIELD_DEFINITION3.3.1subgraph: String
3.3.2type: String
3.3.3direction: _RelationDirections
3.3.4properties: String
3.4@alias
directive @alias(subgraph: String, property: String!) on FIELD_DEFINITION3.4.1subgraph: String, property: String!
3.5@cypher
directive @cypher(subgraph: String, statement: String!, columnName: String!) on FIELD_DEFINITION3.5.1subgraph: String, statement: String!, columnName: String!
3.6@plural
directive @plural(subgraph: String, value: String!) on OBJECT | INTERFACE | UNION