Hello,
I changed my model from
-module(question_data, [Id,QData1,QData2,QData3,QData4,QData5,QData6]).
-compile(export_all).
to the below;
-module(question_data, [Id::uuid(),QData1,QData2,QData3,QData4,QData5,QData6]).
-compile(export_all).
Then i tried again to save a record to mongodb as below;
NewQData = question_data:new(id,Data1,Data2,Data3,Data4,Data5,Data6),
{ok,SavedQData} = NewQData:save(),
Every Data (Data1,Data2,Data3,Data4,Data5,Data6) i am trying to save are strings. I face with the same error again: Error parsing Boss record id: error:{badmatch,["Y39OPvJ1PrVf4"]}
And Data1 is saved to mongodb database as []. Whatever i put after id gets the same error and saved to mongo database as [].
Thanks
Mert
28 Nisan 2015 Salı 13:00:22 UTC+3 tarihinde Dmitry Polyanovsky yazdı: