0

Hello I have the following variable:

var delete_query = []

Then I assign

delete_query[0] = "CALL apoc.index.relationships('TO','statement:241') YIELD rel WITH DISTINCT rel DELETE rel;"

However, when I then print it out console.log(delete_query);

I see something like

[ 'CALL apoc.index.relationships(\'TO\',\'statement:ae976060-1649-11e8-b256-ff710bab2aaf\') YIELD rel WITH DISTINCT rel DELETE rel;']

How do I avoid escape character \ being added?

Thanks!

2
  • What browser does this? Commented Feb 20, 2018 at 14:40
  • @epascarello Node.Js Commented Feb 20, 2018 at 20:53

1 Answer 1

1

No character has been added to the string. This is just the console adding it for display, so that it is unambiguous with respect to the quoting. It's essentially showing you the string as it would have to be written in source code, if it were written in source code.

Sign up to request clarification or add additional context in comments.

1 Comment

Although my browser does not do this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.