Do dgraph js clients support any sort of error handling for set, delete, upsert operations?

There is no error management section for js client’s github page.
I have some question related to error handling in dgraph:

  • How to know if there is an error for an operation(set, delete, update, …)?
  • Does server return any sort of meaningful error message to the client (like http errors)?

Version: 21.03.2