list of dicts

89 views
Skip to first unread message

trueisf...@gmail.com

unread,
Nov 10, 2014, 3:33:39 AM11/10/14
to node-d...@googlegroups.com
Hey,

Is there a way to save list of dicts ? According to http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html it should be possible.
If i try just adding:
var item = { one: 'test2',
               two: 'Kapow',
               usr: 'spolu',
               lng: ['node', 'c++'],
               mew: [
                 {'foo': 'blue', 'w': 1, 't': 2},
                 {'foo': 'red', 'w': 11, 't': 22}
               ]
  };

i get 

ERR { [Error: PutItem [400]: One or more parameter values were invalid: An number set  may not be empty]

  statusCode: 400,

  requestId: 'MUFRMIPBFI6VVAR1R408KLGS0RVV4KQNSO5AEMVJF66Q9ASUAAJG',

  code: 'ValidationException',

  data: 

   { __type: 'com.amazon.coral.validate#ValidationException',

     message: 'One or more parameter values were invalid: An number set  may not be empty' } }

Reply all
Reply to author
Forward
0 new messages