Dgraph’s parser doesn’t supports multiline. You have to use JSON escaping on your end.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Can not save string to dgraph is it has '\n' | 1 | 366 | September 13, 2021 | |
| Can't store JSON as string DQL | 1 | 574 | June 18, 2022 | |
| How to store `"` and `CRLF` in dgraph? | 4 | 568 | November 11, 2019 | |
| "set" mutation escape character in JSON error | 2 | 923 | November 15, 2019 | |
| Is space and multiple line in a query string essential? | 2 | 698 | July 11, 2020 |