1
0
Fork 0
arangodb/Documentation/Examples/RestQueryInvalid.generated

14 lines
409 B
Plaintext

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/query <<EOF
{ "query" : "FOR p IN products FILTER p.name = @name LIMIT 2 RETURN p.n" }
EOF
HTTP/1.1 400 Bad Request
content-type: application/json; charset=utf-8
{
"error" : true,
"errorMessage" : "syntax error, unexpected assignment near '= @name LIMIT 2 RETURN p.n' at position 1:33",
"code" : 400,
"errorNum" : 1501
}