neo4j-graphql-js icon indicating copy to clipboard operation
neo4j-graphql-js copied to clipboard

Tool only works if your naming in Neo4j matches your naming in your graphQL schema

Open grantvermeer opened this issue 7 years ago • 3 comments

After discussing this issue with @jexp, he came up with the idea of adding support for mapping functions to be passed in that would map a graphQL name to a neo4j name. The brainstormed idea has 4 mapping functions, 1 for each: labels, rel-types, node-props, rel-props.

For the properties mapping functions, it would be ideal to have it dependent on the parent type (aka node/relationship label), otherwise the property of name on the movie type would always be remapped in the same was as the property of name on the user type.

grantvermeer avatar Dec 06 '17 15:12 grantvermeer

@grantvermeer Has there been any progress on this?

purplemana avatar Oct 04 '18 03:10 purplemana

@purplemana We actually ended up finding it easier to write our own graphQL -> cypher converter because of some of the complications with our naming schema.

grantvermeer avatar Oct 04 '18 19:10 grantvermeer

https://github.com/neo4j-graphql/neo4j-graphql-js/issues/608

michaeldgraham avatar May 02 '21 04:05 michaeldgraham