Hey, Sarita. I saw your topic and thought it was another case. BTW, you should use the preformatted text code to paste any Dgraph code or other lang code.
Well, the escape patterns are the same as JSON. In the case, you should escape and unescape yourself at the application level.
Backspace is replaced with \b
Form feed is replaced with \f
Newline is replaced with \n
Carriage return is replaced with \r
Tab is replaced with \t
Double quote is replaced with \"
Backslash is replaced with \\