I am Software Engineer 👨💻 from India 🇮🇳
I consider myself a backend developer with decent frontend experience 😁
Thanks a lot for visiting 😍
A sailsJS adaptor for DynamoDB compatible with sailsJS v1
Sails 1.0 Model does not support "array" type for an attribute, instead it asks us to configure it as
{ type: 'json', columnType: 'array' }
When querying the database after configuring it so, the particular attribute fails to parse it from the way AWS Dynamo stores it internally.
sails-dynamodb-v1/utils/app.util.js
Line 464 in 20fa70d
If the attribute is not specified in the Model, and there is data present in Dynamo, this throws an Error.
Example:
My Model does not have an attribute "email" present. But the dynamo table has an entry with "email" as its key, your adapter throws an error.
This happens because it can't normalise the data as it's datatype is unknown to it.
When trying to get the record after creating the record, it failed.
The adapter is unable to perform "update" operations without "range" key.
Error in
sails-dynamodb-v1/index.js line 334 update function
code
let Key = and.reduce((prev, curr) => ({ ...prev, ...curr }), {});
Here the value of "and" is undefined causing error.
Model.find() keep throwing
(node:38150) UnhandledPromiseRejectionWarning: Unhandled promise rejection
(rejection id: 1): TypeError: Cannot convert undefined or null to object
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.