request - Integrate DynamoDb in Sails js -


actually tried start project sailsjs dynamodb data base.

searching internet found package https://github.com/dohzoh/sails-dynamodb, found have complete documentation initial setup.

i installed package project , proceeded set project follows:

config/connections.js :

dynamodb: {     adapter: "sails-dynamodb"   }, 

and config/models.js:

connection: 'dynamodb' 

i put amazon keys in node_modules/sails-dynamodb/credentials.json

i create next model:

module.exports = {     attributes: {         idfacebook : {             type : 'string',             unique: true         },          emailuser : {             type : 'string',             required : true         },          nameuser : {             type: 'string',             required : true         },         lastnameuser : {             type: 'string',             required : true         }     } }; 

and when sails lift, throw next error:

    /home/uppersky01/proyectos/gamemousecat/node_modules/sails-dynamodb/node_modules/vogels/node_modules/aws-sdk/lib/request.js:32           throw err;                 ^ error: define no longer accepts schema callback, migrate new api     @ object.vogels.define (/home/uppersky01/proyectos/gamemousecat/node_modules/sails-dynamodb/node_modules/vogels/lib/index.js:126:11)     @ object.module.exports.adapter._getmodel (/home/uppersky01/proyectos/gamemousecat/node_modules/sails-dynamodb/index.js:169:23)     @ object.module.exports.adapter.define (/home/uppersky01/proyectos/gamemousecat/node_modules/sails-dynamodb/index.js:289:33)     @ /usr/lib/node_modules/sails/node_modules/waterline/lib/waterline/adapter/ddl/index.js:60:15     @ bound (/usr/lib/node_modules/sails/node_modules/lodash/dist/lodash.js:957:21)     @ applyinoriginalctx (/usr/lib/node_modules/sails/node_modules/waterline/lib/waterline/utils/normalize.js:416:80)     @ wrappedcallback (/usr/lib/node_modules/sails/node_modules/waterline/lib/waterline/utils/normalize.js:315:18)     @ _normalizecallback.callback.success (/usr/lib/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/normalize.js:33:31)     @ _switch (/usr/lib/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/factory.js:48:28)     @ response.<anonymous> (/home/uppersky01/proyectos/gamemousecat/node_modules/sails-dynamodb/index.js:340:21)     @ request.<anonymous> (/home/uppersky01/proyectos/gamemousecat/node_modules/sails-dynamodb/node_modules/vogels/node_modules/aws-sdk/lib/request.js:350:18)     @ request.calllisteners (/home/uppersky01/proyectos/gamemousecat/node_modules/sails-dynamodb/node_modules/vogels/node_modules/aws-sdk/lib/sequential_executor.js:100:18)     @ request.emit (/home/uppersky01/proyectos/gamemousecat/node_modules/sails-dynamodb/node_modules/vogels/node_modules/aws-sdk/lib/sequential_executor.js:77:10)     @ request.emit (/home/uppersky01/proyectos/gamemousecat/node_modules/sails-dynamodb/node_modules/vogels/node_modules/aws-sdk/lib/request.js:604:14)     @ request.transition (/home/uppersky01/proyectos/gamemousecat/node_modules/sails-dynamodb/node_modules/vogels/node_modules/aws-sdk/lib/request.js:21:12)     @ acceptorstatemachine.runto (/home/uppersky01/proyectos/gamemousecat/node_modules/sails-dynamodb/node_modules/vogels/node_modules/aws-sdk/lib/state_machine.js:14:12) 

i'm looking similar bugs, have not found answer problem. hope can me.

thank you

i faced same problem. can try downgrading current version of "vogels" module. worked me time ago had upgrade later because had use newer version of "aws-sdk".

maybe vogels@0.12.0 work.i don't remember can try more versions.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -