Open sandrokeil opened 6 years ago
We should add the silent
option for InsertDocument
calls, because this simplifies error check. rId0
has the value true
. :tada:
{
"code": 200,
"error": false,
"result": {
"rId0": true,
"rId1": [
{
"error": true,
"errorMessage": "unique constraint violated - in index 0 of type primary over [\"_key\"]",
"errorNum": 1210
},
{
"error": true,
"errorMessage": "unique constraint violated - in index 0 of type primary over [\"_key\"]",
"errorNum": 1210
}
]
}
}
We get fast access with Working with Arrays and Objects.
We should find a possibility to replace the Type inspectors with working directly on velocypack data for faster checks. This is especially needed for lager transactions/responses.
Succesful response
Error response single type
Attention: Root
error
key is false, but individual result has"error": true,
.Error response multiple types
Attention: Root
error
key is false, but individual result has"error": true,
.I would suggest to only find the first error object and transform it to an exception. A method to get all errors would be nice too. The error object under
result
has the following structure:Would be nice if there is a faster lookup instead of iterating through each result.