Last active
March 14, 2021 15:29
-
-
Save mr-pascal/7fad695dfd1a420ee6a6e2e27d246393 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
/** | |
const rows = [ | |
// invalid row, there is no "Hello" field in the table schema | |
{ Name: 'Tom', Age: 30, Hello: "string" } | |
], | |
**/ | |
// --> Output of: console.error(JSON.stringify(e.response.insertErrors, null, 2)); | |
[ | |
{ | |
"index": 0, | |
"errors": [ | |
{ | |
"reason": "invalid", | |
"location": "Hello", | |
"debugInfo": "", | |
"message": "no such field." | |
} | |
] | |
}, | |
{ | |
"index": 1, | |
"errors": [ | |
{ | |
"reason": "stopped", | |
"location": "", | |
"debugInfo": "", | |
"message": "" | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment