View Source BSON (mongodb-driver v1.4.1)

Functions for encoding and decoding BSON documents.

Summary

Functions

Decode iodata to a BSON document.

Encode a BSON document to iodata.

Types

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

Functions

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

Decode iodata to a BSON document.

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

Encode a BSON document to iodata.