Primary key isn't always 'id'. Will add a note about nextId method.
On Jun 6, 2014 12:21 PM, "Francesco Orsenigo" <notifications@github.com>
wrote:

> In README.md:
>
> > @@ -14,6 +14,16 @@ Extended API
> >  Batch writes `items` ensuring that at most a fraction of the table's write capacity corresponding to `capacityRatio` is used.
> >
> >
> > +### truncate(callback)
> > +
> > +Truncates table
> > +
> > +### addNew(recornd, callback)
> > +
> > +Adds new record to the table. If `key` is defined then method does `put` straigt away. Otherwise it assigns
> > +new id and puts it to table. Assumes that `dynamo-table-id` is used and activated for particular table.
>
> Adds an id attribute if not present already, then puts the record in the
> table.
> Assumes that this.nextId (from dynamo-table-id package) is available.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/xarvh/dynamo-table-extensions/pull/2/files#r13474354>.
>