Mongo.uuid-exclamation-mark

You're seeing just the function uuid-exclamation-mark, go back to Mongo module for more information.

Similar to uuid/1 except it will unwrap the error tuple and raise in case of errors.

Example

iex> Mongo.uuid!("848e90e9-5750-4e0a-ab73-66ac6b328242")
#BSON.UUID<848e90e9-5750-4e0a-ab73-66ac6b328242>

iex> Mongo.uuid!("848e90e9-5750-4e0a-ab73-66ac6b328242x")
** (ArgumentError) invalid UUID string
(mongodb_driver 0.6.4) lib/mongo.ex:205: Mongo.uuid!/1