Some feedback from some lacking documentation regarding @cypher directive:
It is not clear in the doc how to add a param in a GraphQL query directly which then binds to a variable in a cypher query through the @cypher directive.
Add example and information of a cypher query with the @cyper directive doing a lot of matches with several properties from different nodes and relationships, then in order for GraphQL to parse it properly you need to create a typeDef which holds all that information of all the properties you want to return, and then return them as a map.
Some feedback from some lacking documentation regarding
@cypher
directive:It is not clear in the doc how to add a param in a GraphQL query directly which then binds to a variable in a cypher query through the
@cypher
directive.Add example and information of a cypher query with the
@cyper
directive doing a lot of matches with several properties from different nodes and relationships, then in order for GraphQL to parse it properly you need to create a typeDef which holds all that information of all the properties you want to return, and then return them as a map.