neo4j / docs-graphql

GraphQL docs
5 stars 9 forks source link

Cypher Directive documentation improvements #110

Closed angrykoala closed 6 months ago

angrykoala commented 2 years ago

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.