Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
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