Open neilprosser opened 5 years ago
I suppose the options are
makeAugmentedSchema
and augmentSchema
so this would be applied to every generated query, orWould you want fine-grained Query/Mutation field-specific control over this or just a blanket "apply to all generated queries" approach?
For our use-case (which was probably pretty unusual) we found it easiest to apply to all generated queries. Perhaps that's the best way to start with this and then see whether anyone would get any benefit from being able to apply it in a more fine-grained way.
We've hit a situation where we need to be able to to use the ability to specify a Cypher version. After an upgrade to Neo4j 3.5 from 3.4 we hit a major performance regression which resulted in an order of magnitude slowdown of our generated Cypher queries.
We mitigated this by monkey-patching the
translateQuery
function to prependCYPHER 3.4
to all translated queries but it would be great to have a proper way to do this properly via configuration.We've raised neo4j/neo4j#12318 for the actual performance regression.
We've not raised a PR for this because it's not clear how you might want to go about specifying this configuration. We're happy to make the PR once we know we're putting the config in a sensible place!