Skip to content

Commit

Permalink
Add errorUnknown documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dobrynin committed Jan 12, 2019
1 parent 0abaef7 commit 40cb269
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/_docs/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,16 @@ var schema = new Schema({...}, {
});
```

**errorUnknown**: boolean

Specifies that any attributes not defined in the _schema_ will throw an error if encountered while parsing records from DynamoDB. This defaults to false.

```js
var schema = new Schema({...}, {
errorUnknown: true
});
```

**attributeToDynamo**: function

A function that accepts `name, json, model, defaultFormatter, options`.
Expand Down

0 comments on commit 40cb269

Please sign in to comment.