I tried this:
docker exec -it b313002cc881 curl -X POST localhost:8080/alter -d \
'\
<n_content>:string @index(fulltext) .\
<n_created_at>:datetime .\
type Note {\
n_created_at\
n_content\
}\
'
But then I got this:
{"errors":[{"message":"while lexing \n\u003cn_content\u003e:string @index(fulltext) .\n\u003cn_created_at\u003e:datetime .\ntype Note {\\\nn_created_at\\\nn_content\\\n}\\\n at line 4 column 11: Invalid schema. Unexpected \\","extensions":{"code":"Error"}}]}
How do I alter type definition using curl?