Skip to content

Commit

Permalink
Adding nested schema type test
Browse files Browse the repository at this point in the history
  • Loading branch information
fishcharlie committed Nov 27, 2020
1 parent 198049e commit 5adcbc8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/types/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@ const shouldSucceedWithStringSet = new dynamoose.Schema({
"schema": [String]
}
});

// Nested Schema
const shouldSucceedWithNestedSchema = new dynamoose.Schema({
"id": String,
"data": new dynamoose.Schema({
"name": String
})
});

0 comments on commit 5adcbc8

Please sign in to comment.