How to use the dynamoose.Schema function in dynamoose

To help you get started, we’ve selected a few dynamoose examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ctindel / reader / social-auth-example / backend / dynamoose.js View on Github external
'use strict';

var shortId = require('shortid');
var dynamoose = require('dynamoose');
var Schema = dynamoose.Schema;
var config = require('./config');

const AmazonCognitoIdentity = require('amazon-cognito-identity-js');
const CognitoUserPool = AmazonCognitoIdentity.CognitoUserPool;
const AWS = require('aws-sdk');
const request = require('request');
const jwkToPem = require('jwk-to-pem');
const jwt = require('jsonwebtoken');
// The amazon-cognito-identity-js uses fetch, which isn't in node.js core
global.fetch = require('node-fetch');

const poolData = {
    UserPoolId: config.cognito.userPoolId,
    ClientId : config.cognito.appClientId
};

dynamoose

Dynamoose is a modeling tool for Amazon's DynamoDB (inspired by Mongoose)

Unlicense
Latest version published 5 months ago

Package Health Score

89 / 100
Full package analysis