Improved error handling

Api: Graphql

Improved the error handling for mutations: onError argument to control the behavior when an error is encountered, and a clear indication of what records failed. See Inserts - Error Handling.