View Source BSON (mongodb-driver v1.2.0)

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

@type document() ::
  %{required(atom()) => t()}
  | %{required(String.t()) => t()}
  | [{atom(), t()}]
  | [{String.t(), t()}]

Link to this section Functions

@spec decode(iodata()) :: document()

Decode iodata to a BSON document.

@spec encode(document()) :: iodata()

Encode a BSON document to iodata.