As you can see there is not much to it, a very simple insert
Model
------
-module(clientList, [Id, Listname, Email, Datablock]).
-compile(export_all).
-------
Controller
--------
-module(pigeon_mdbtest_controller, [Req]).
-export([hello/2]).
hello('GET', [])->
ClientList = clientList:new(id, "Bill","
bi...@email.com",[{"0","Field1"},{"1","Field2"},{"2","Field3"}]),
boss_db:transaction ( fun()-> ClientList:save() end),
{output, ["test done"]}.
------
Error
------
[error] Error in controller error function_clause
[{bson_binary,put_field_accum,
["0","Field1",<<>>],
[{file,"src/bson_binary.erl"},{line,93}]},
{bson,doc_foldlN,5,[{file,"src/bson.erl"},{line,37}]},
{bson_binary,put_document,1,
[{file,"src/bson_binary.erl"},{line,91}]},
{bson_binary,put_field,2,
[{file,"src/bson_binary.erl"},{line,33}]},
{bson_binary,put_value_accum,2,
[{file,"src/bson_binary.erl"},{line,115}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1261}]},
{bson_binary,put_array,1,
[{file,"src/bson_binary.erl"},{line,112}]},
{bson_binary,put_field,2,
[{file,"src/bson_binary.erl"},{line,34}]}]
-------