[x] Refactoring
[x] Write documentation
[x] Getting nested relationship queries working
Tried performing recursive Neo4j Cypher query, but the GraphQL response returned a flat array of Concepts (rather than an array of nested Concepts) - example:
allConcepts: [Concept] @cypher(
statement: "MATCH (this)-[:TEACHES *1..]->(c:Concept) return c"
)
So now I've implemented the approach recommended by Facebook: manually query n levels deep (in this case, I've made the queries go 5 levels deep in Concepts) and then later load another n levels deeper if you need to - example:
fragment concept on Concept {
...conceptWithoutChildren
concepts {
...conceptWithoutChildren
concepts {
...conceptWithoutChildren
concepts {
...conceptWithoutChildren
concepts {
...conceptWithoutChildren
concepts {
...conceptWithoutChildren
}
}
}
}
}
[x] Create sample queries
[x] Create sample mutations
[x] OrientDB ⇒ Neo4j migration
[x] Neo4j ⇒ OrientDB migration (reverse) for backwards-compatibility
[ ] Integrating with CMS?