Skip to content

Instantly share code, notes, and snippets.

@brunoluiz
Created August 24, 2017 03:47
Show Gist options
  • Save brunoluiz/247777daaaeef2fdfeefa50b897687af to your computer and use it in GitHub Desktop.
Save brunoluiz/247777daaaeef2fdfeefa50b897687af to your computer and use it in GitHub Desktop.
module.exports = {
email: Joi.string().email(),
title: Joi.string(),
content: Joi.binary(),
tags: vogels.types.stringSet(),
}
const schema = require('./blog-post-schema.js')
module.exports = vogels.define('BlogPost', {
hashKey: 'email',
rangeKey: ‘title’,
schema
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment