Skip to content

Instantly share code, notes, and snippets.

@mr-pascal
Last active March 14, 2021 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mr-pascal/7fad695dfd1a420ee6a6e2e27d246393 to your computer and use it in GitHub Desktop.
Save mr-pascal/7fad695dfd1a420ee6a6e2e27d246393 to your computer and use it in GitHub Desktop.
/**
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