Context: neo4j Javascript driver
Since we are not allowed to use parameters for label names, relationship types, or property keys, the convenient thing to do when building a dynamic query would be to use string interpolation to insert the node label name (for instance) at runtime.
In this knowledge base article, we are warned that this leaves us open to CYPHER injection and so we should sanitize our inputs. But I can't find anything in the docs about specifically how to "sanitize inputs". Can someone explain how to do that?
That article also says "there are some things in Cypher that cannot be parameterized, such as node labels and relation types. There are some APOC Procs that can help (and should be used if so)".
Does anyone know which APOC Procs they are referring to? And how they help with this issue?