Docs Menu

Docs HomeMongoDB Manual

WriteResult.hasWriteError()

On this page

  • Definition
WriteResult.hasWriteError()

Returns true if the result of a mongosh write method has WriteResult.writeError. Otherwise, the method returns false.

Tip

See also:

←  WriteResult()WriteResult.hasWriteConcernError() →

On this page

Share Feedback
© 2023 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.