Escaping special characters


What characters should be escaped in Dgraph queries?
I guess the following list:

  1. \ character
  2. " character
  3. new line character
  4. carriage return character

Is there anything else?

P.S. I make requests by java Dgraph client.

There’s a blurb in the docs about escaping special characters: Get started with Dgraph

Note: If your predicate has special characters, then you should wrap it with angular brackets while asking for it in the query. E.g. <first:name>

I’d include <, >, /, and : characters for escaping.

1 Like

Can you please point me to the appropriate docs? the above link is invalid.