Skip to content

Commit

Permalink
DOC: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael O'Brien committed Jul 5, 2021
1 parent 9566d40 commit fa7172a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions samples/overview/src/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export default {
email: { type: String, required: true, validate: Match.email, crypt: true },
role: { type: String, default: 'user', enum: ['admin', 'user']}

// MOB - get map working with nested schema
address: { type: Object, default: {}, schema: {
street: { type: String, /* map: 'data.street' */ },
city: { type: String, /* map: 'data.city' */ },
Expand Down Expand Up @@ -70,7 +69,6 @@ export default {
pk: { type: String, value: 'account#${accountId}' },
sk: { type: String, value: 'invoice#${id}' },

// MOB - between won't work
accountId: { type: String, required: true },
date: { type: Date, default: () => new Date() },
id: { type: String, uuid: true },
Expand Down
1 change: 0 additions & 1 deletion samples/typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ async function test() {
*/
let collection = await table.fetch(['Account', 'User', 'Invoice'], {pk: `account#${account.id}`})

// MOB - this should be able to be mapped too?
user = await User.update({email: '[email protected]'}, {set: {'address.zip': '{"98034"}'}})

/*
Expand Down
2 changes: 0 additions & 2 deletions samples/typescript/src/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default {
name: { type: String, required: true, validate: Match.name },
email: { type: String, required: true, validate: Match.email, crypt: true },

// MOB - get map working with nested schema
address: { type: Object, default: {}, schema: {
street: { type: String, /* map: 'data.street' */ },
city: { type: String, /* map: 'data.city' */ },
Expand Down Expand Up @@ -69,7 +68,6 @@ export default {
pk: { type: String, value: 'account#${accountId}' },
sk: { type: String, value: 'invoice#${id}' },

// MOB - between won't work
accountId: { type: String, required: true },
date: { type: Date, default: () => new Date() },
id: { type: String, uuid: true },
Expand Down

0 comments on commit fa7172a

Please sign in to comment.