diff --git a/samples/overview/src/schema.js b/samples/overview/src/schema.js index f346b78..eb6edb1 100644 --- a/samples/overview/src/schema.js +++ b/samples/overview/src/schema.js @@ -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' */ }, @@ -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 }, diff --git a/samples/typescript/src/index.ts b/samples/typescript/src/index.ts index c4c8cb3..0b0031e 100644 --- a/samples/typescript/src/index.ts +++ b/samples/typescript/src/index.ts @@ -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: 'roadrunner@acme.com'}, {set: {'address.zip': '{"98034"}'}}) /* diff --git a/samples/typescript/src/schema.js b/samples/typescript/src/schema.js index d28c236..b42e77e 100644 --- a/samples/typescript/src/schema.js +++ b/samples/typescript/src/schema.js @@ -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' */ }, @@ -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 },