mongodb-driver v0.5.1 BSON View Source

Functions for encoding and decoding BSON documents.

Link to this section Summary

Functions

Decode iodata to a BSON document.

Encode a BSON document to iodata.

Link to this section Types

Link to this type

document() View Source
document() ::
  %{optional(atom()) => BSON.t()}
  | %{optional(String.t()) => BSON.t()}
  | [{atom(), BSON.t()}]
  | [{String.t(), BSON.t()}]

Link to this section Functions

Decode iodata to a BSON document.

Encode a BSON document to iodata.